From 59b132f0f7bceb6b64f7fb3ca07d0db5f0255baa Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 21 Jun 2008 20:46:35 +1200 Subject: [PATCH] add a * when rendering executable paths --- plugin/NERD_tree.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index d0206a9..ba723bf 100644 --- 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