Skip to content

Commit c3a2f88

Browse files
author
marty
committed
set up syntax highlighting even if highlighting rules already exist
1 parent 1acf632 commit c3a2f88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/NERD_tree.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -2183,7 +2183,7 @@ function! s:initNerdTreeInPlace(dir)
21832183
call s:bindMappings()
21842184
setfiletype nerdtree
21852185
" syntax highlighting
2186-
if has("syntax") && exists("g:syntax_on") && !has("syntax_items")
2186+
if has("syntax") && exists("g:syntax_on")
21872187
call s:setupSyntaxHighlighting()
21882188
endif
21892189

@@ -2416,7 +2416,7 @@ function! s:createTreeWin()
24162416
call s:bindMappings()
24172417
setfiletype nerdtree
24182418
" syntax highlighting
2419-
if has("syntax") && exists("g:syntax_on") && !has("syntax_items")
2419+
if has("syntax") && exists("g:syntax_on")
24202420
call s:setupSyntaxHighlighting()
24212421
endif
24222422
endfunction

0 commit comments

Comments
 (0)