add proof of concept for path flags API and add git modified flags

This commit is contained in:
Martin Grenfell
2014-07-05 00:29:45 +01:00
parent d162c08fd7
commit a7428eba38
6 changed files with 124 additions and 5 deletions

View File

@@ -238,6 +238,7 @@ function! nerdtree#loadClassFiles()
runtime lib/nerdtree/tree_dir_node.vim
runtime lib/nerdtree/opener.vim
runtime lib/nerdtree/creator.vim
runtime lib/nerdtree/refresh_notifier.vim
endfunction
" FUNCTION: nerdtree#postSourceActions() {{{2
@@ -941,6 +942,9 @@ function! nerdtree#stripMarkupFromLine(line, removeLeadingSpaces)
"strip off any executable flags
let line = substitute (line, '*\ze\($\| \)', "","")
"strip off any generic flags
let line = substitute (line, '\[[^]]*\]', "","")
let wasdir = 0
if line =~# '/$'
let wasdir = 1