mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
vim-patch:8.1.1791: 'completeslash' also applies to globpath()
Problem: 'completeslash' also applies to globpath(). Solution: Add the WILD_IGNORE_COMPLETESLASH flag. (test by Yasuhiro Matsumoto, closes vim/vim#4760)
This commit is contained in:
@@ -4007,7 +4007,7 @@ static void f_glob(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
/// "globpath()" function
|
||||
static void f_globpath(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
{
|
||||
int flags = 0; // Flags for globpath.
|
||||
int flags = WILD_IGNORE_COMPLETESLASH; // Flags for globpath.
|
||||
bool error = false;
|
||||
|
||||
// Return a string, or a list if the optional third argument is non-zero.
|
||||
|
Reference in New Issue
Block a user