aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/path.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c
index d8f5163ed0..21ac064c30 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -2204,7 +2204,9 @@ static int path_get_absolute_path(const char_u *fname, char_u *buf,
if (force || !path_is_absolute_path(fname)) {
p = vim_strrchr(fname, '/');
#ifdef WIN32
- if (p == NULL) p = vim_strrchr(fname, '\\');
+ if (p == NULL) {
+ p = vim_strrchr(fname, '\\');
+ }
#endif
if (p != NULL) {
// relative to root