From 1b462705d049fa0cf2bb99bae9112b84abea8d5a Mon Sep 17 00:00:00 2001 From: Enan Ajmain <3nan.ajmain@gmail.com> Date: Mon, 18 Jul 2022 06:00:08 +0600 Subject: fix(windows):exepath, stdpath return wrong slashes #19111 exepath and stdpath should respect shellslash and return path with proper file separator. Closes #13787 --- src/nvim/os/stdpaths.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/nvim/os/stdpaths.c') 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; } -- cgit