mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05: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:
@@ -3408,7 +3408,7 @@ function! s:setupSyntaxHighlighting()
|
|||||||
syn match NERDTreeFlag #\[RO\]#
|
syn match NERDTreeFlag #\[RO\]#
|
||||||
|
|
||||||
"highlighting for the .. (up dir) line at the top of the tree
|
"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
|
"highlighting for the ~/+ symbols for the directory nodes
|
||||||
syn match NERDTreeClosable #\~\<#
|
syn match NERDTreeClosable #\~\<#
|
||||||
|
|||||||
Reference in New Issue
Block a user