fix a bug with NERDTreeMinimalUI and syntax highlighting

Use \V for the updir text regex. Otherwise '..' is treated as a regex
rather than 2 literal dots.
This commit is contained in:
Martin Grenfell 2011-03-01 10:54:06 +13:00
parent e697444f29
commit fad6f06ace

View File

@ -3408,7 +3408,7 @@ function! s:setupSyntaxHighlighting()
syn match NERDTreeFlag #\[RO\]#
"highlighting for the .. (up dir) line at the top of the tree
execute "syn match NERDTreeUp #". s:tree_up_dir_line ."#"
execute "syn match NERDTreeUp #\\V". s:tree_up_dir_line ."#"
"highlighting for the ~/+ symbols for the directory nodes
syn match NERDTreeClosable #\~\<#