# HG changeset patch # User Christian Brabandt # Date 1535891405 -7200 # Node ID 98d48a5e608b8ec327efb3180e0c008ea0595be3 # Parent f862bf42fbab4599427d206d2e2c0322c10b0256 patch 8.1.0343: 'shellslash' is not used for getcwd() with local directory commit https://github.com/vim/vim/commit/3c5b8cd25485183ff7ce737e4dac069541210f6c Author: Bram Moolenaar Date: Sun Sep 2 14:25:05 2018 +0200 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) diff --git a/src/evalfunc.c b/src/evalfunc.c --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4955,11 +4955,11 @@ f_getcwd(typval_T *argvars, typval_T *re vim_free(cwd); } } + } #ifdef BACKSLASH_IN_FILENAME - if (rettv->vval.v_string != NULL) - slash_adjust(rettv->vval.v_string); -#endif - } + if (rettv->vval.v_string != NULL) + slash_adjust(rettv->vval.v_string); +#endif } /* diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -795,6 +795,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 343, +/**/ 342, /**/ 341,