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:
@@ -4955,11 +4955,11 @@ f_getcwd(typval_T *argvars, typval_T *rettv)
|
||||
vim_free(cwd);
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifdef BACKSLASH_IN_FILENAME
|
||||
if (rettv->vval.v_string != NULL)
|
||||
slash_adjust(rettv->vval.v_string);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -794,6 +794,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
343,
|
||||
/**/
|
||||
342,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user