mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-27 02:33:35 +08:00
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:
parent
e697444f29
commit
fad6f06ace
|
@ -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 #\~\<#
|
||||
|
|
Loading…
Reference in New Issue
Block a user