aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/path.c
diff options
context:
space:
mode:
authorScott Prager <splinterofchaos@gmail.com>2014-09-17 00:58:30 -0400
committerScott Prager <splinterofchaos@gmail.com>2014-09-17 01:00:24 -0400
commit9445eaa297a7e01c20cb5e5141be54cc7d8d5cce (patch)
treecb44a949bab57286b4cda4aee8843b39bdef5b12 /src/nvim/path.c
parent899878d347b4a85e3a19e5bb86f7519cc9255992 (diff)
downloadrneovim-9445eaa297a7e01c20cb5e5141be54cc7d8d5cce.tar.gz
rneovim-9445eaa297a7e01c20cb5e5141be54cc7d8d5cce.tar.bz2
rneovim-9445eaa297a7e01c20cb5e5141be54cc7d8d5cce.zip
vim-patch:7.4.235
Problem: It is not easy to get the full path of a command. Solution: Add the exepath() function. https://code.google.com/p/vim/source/detail?r=5ab2946f7ce560985830fbc3c453bb0f7a01f385
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r--src/nvim/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c
index f4806f5974..6990a1817c 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -1232,7 +1232,7 @@ addfile (
return;
/* If the file isn't executable, may not add it. Do accept directories. */
- if (!isdir && (flags & EW_EXEC) && !os_can_exe(f))
+ if (!isdir && (flags & EW_EXEC) && !os_can_exe(f, NULL))
return;
char_u *p = xmalloc(STRLEN(f) + 1 + isdir);