diff src/misc1.c @ 5782:5ab2946f7ce5 v7.4.235

updated for version 7.4.235 Problem: It is not easy to get the full path of a command. Solution: Add the exepath() function.
author Bram Moolenaar <bram@vim.org>
date Tue, 01 Apr 2014 21:00:59 +0200
parents 06e5f65c34d8
children e5f1f2ea0b4a
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -10728,7 +10728,7 @@ addfile(gap, f, flags)
 	return;
 
     /* If the file isn't executable, may not add it.  Do accept directories. */
-    if (!isdir && (flags & EW_EXEC) && !mch_can_exe(f))
+    if (!isdir && (flags & EW_EXEC) && !mch_can_exe(f, NULL))
 	return;
 
     /* Make room for another item in the file list. */