aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os_unix.c
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2016-04-29 21:17:06 +0200
committerKillTheMule <KillTheMule@users.noreply.github.com>2016-05-02 21:09:43 +0200
commit00c35ab3b4d8498c82776525de7b1afcd7b3424a (patch)
treefce72ff6c7a1adf88952c57ddb6c78246fc41c2d /src/nvim/os_unix.c
parentd542de4a76dd9e600ebcf1405efdc9d3090ad9a8 (diff)
downloadrneovim-00c35ab3b4d8498c82776525de7b1afcd7b3424a.tar.gz
rneovim-00c35ab3b4d8498c82776525de7b1afcd7b3424a.tar.bz2
rneovim-00c35ab3b4d8498c82776525de7b1afcd7b3424a.zip
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. https://github.com/vim/vim/commit/b5971141dff0c69355fd64196fcc0d0d071d4c82 Most of it applied manually.
Diffstat (limited to 'src/nvim/os_unix.c')
-rw-r--r--src/nvim/os_unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c
index 63a3dbc054..cc4fb2653d 100644
--- a/src/nvim/os_unix.c
+++ b/src/nvim/os_unix.c
@@ -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);