1
0
forked from aniani/vim

patch 8.1.0343: 'shellslash' is not used for getcwd() with local directory

Problem:    'shellslash' is not used for getcwd() with local directory.
            (Daniel Hahler)
Solution:   Call slash_adjust() later. (closes #3399)
This commit is contained in:
Bram Moolenaar
2018-09-02 14:25:05 +02:00
parent 94f01956a5
commit 3c5b8cd254
2 changed files with 6 additions and 4 deletions

View File

@@ -4955,11 +4955,11 @@ f_getcwd(typval_T *argvars, typval_T *rettv)
vim_free(cwd); vim_free(cwd);
} }
} }
#ifdef BACKSLASH_IN_FILENAME
if (rettv->vval.v_string != NULL)
slash_adjust(rettv->vval.v_string);
#endif
} }
#ifdef BACKSLASH_IN_FILENAME
if (rettv->vval.v_string != NULL)
slash_adjust(rettv->vval.v_string);
#endif
} }
/* /*

View File

@@ -794,6 +794,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
343,
/**/ /**/
342, 342,
/**/ /**/