commit 59b132f0f7bceb6b64f7fb3ca07d0db5f0255baa
parent d56bf992d2b4a5a22dcd26298880ed532c473182
Author: Martin Grenfell <martin_grenfell@msn.com>
Date: Sat, 21 Jun 2008 20:46:35 +1200
add a * when rendering executable paths
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -1270,6 +1270,10 @@ endfunction
function! s:oPath.StrDisplay() dict
let toReturn = self.GetLastPathComponent(1)
+ if self.isExecutable
+ let toReturn = toReturn . '*'
+ endif
+
let bookmarks = self.BookmarkNames()
if !empty(bookmarks)
let toReturn .= ' {' . join(bookmarks, ',') . '}'
@@ -2502,6 +2506,9 @@ function! s:StripMarkupFromLine(line, removeLeadingSpaces)
"strip off any bookmark flags
let line = substitute (line, ' {[^}]*}', "","")
+ "strip off any executable flags
+ let line = substitute (line, '*\ze\($\| \)', "","")
+
let wasdir = 0
if line =~ '/$'
let wasdir = 1