diff options
author | Enan Ajmain <3nan.ajmain@gmail.com> | 2022-07-18 06:00:08 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 17:00:08 -0700 |
commit | 1b462705d049fa0cf2bb99bae9112b84abea8d5a (patch) | |
tree | 67b375c191a2e81fd963f8f469edb1bd846fbb3f /src/nvim/os/stdpaths.c | |
parent | 776913e32ea4526847b1fffe2959d2b1f7d67451 (diff) | |
download | rneovim-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.c | 4 |
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; } |