mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
vim-patch:7.4.672
Problem: When completing a shell command, directories in the current
directory are not listed.
Solution: When "." is not in $PATH also look in the current directory for
directories.
b5971141df
Most of it applied manually.
This commit is contained in:
@@ -577,7 +577,8 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
|
||||
continue;
|
||||
|
||||
/* Skip files that are not executable if we check for that. */
|
||||
if (!dir && (flags & EW_EXEC) && !os_can_exe((*file)[i], NULL))
|
||||
if (!dir && (flags & EW_EXEC)
|
||||
&& !os_can_exe((*file)[i], NULL, !(flags & EW_SHELLCMD)))
|
||||
continue;
|
||||
|
||||
p = xmalloc(STRLEN((*file)[i]) + 1 + dir);
|
||||
|
Reference in New Issue
Block a user