nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit d56bf992d2b4a5a22dcd26298880ed532c473182
parent efa7941c54827c6f9c3fd9722772a7247dd11a0d
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Sat, 21 Jun 2008 20:45:18 +1200

make paths cache whether they are executable

Diffstat:
Mplugin/NERD_tree.vim | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -1169,6 +1169,11 @@ function! s:oPath.ReadInfoFromDisk(fullpath) dict
         throw "NERDTree.Path.InvalidArguments Exception: Invalid path = " . a:fullpath
     endif
 
+    let self.isExecutable = 0
+    if !self.isDirectory
+        let self.isExecutable = getfperm(a:fullpath) =~ 'x'
+    endif
+
     "grab the last part of the path (minus the trailing slash)
     let lastPathComponent = self.GetLastPathComponent(0)