aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/stdpaths.c
diff options
context:
space:
mode:
authorEnan Ajmain <3nan.ajmain@gmail.com>2022-07-18 06:00:08 +0600
committerGitHub <noreply@github.com>2022-07-17 17:00:08 -0700
commit1b462705d049fa0cf2bb99bae9112b84abea8d5a (patch)
tree67b375c191a2e81fd963f8f469edb1bd846fbb3f /src/nvim/os/stdpaths.c
parent776913e32ea4526847b1fffe2959d2b1f7d67451 (diff)
downloadrneovim-1b462705d049fa0cf2bb99bae9112b84abea8d5a.tar.gz
rneovim-1b462705d049fa0cf2bb99bae9112b84abea8d5a.tar.bz2
rneovim-1b462705d049fa0cf2bb99bae9112b84abea8d5a.zip
fix(windows):exepath, stdpath return wrong slashes #19111
exepath and stdpath should respect shellslash and return path with proper file separator. Closes #13787
Diffstat (limited to 'src/nvim/os/stdpaths.c')
-rw-r--r--src/nvim/os/stdpaths.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/os/stdpaths.c b/src/nvim/os/stdpaths.c
index 5576e7ba07..59d315d44c 100644
--- a/src/nvim/os/stdpaths.c
+++ b/src/nvim/os/stdpaths.c
@@ -115,6 +115,10 @@ char *get_xdg_home(const XDGVarType idx)
#else
dir = concat_fnames_realloc(dir, "nvim", true);
#endif
+
+#ifdef BACKSLASH_IN_FILENAME
+ slash_adjust((char_u *)dir);
+#endif
}
return dir;
}