fix b:color_pattern not found error

This commit is contained in:
Xigui CHEN
2019-10-21 17:36:06 +11:00
parent 0c21b14699
commit fd19862a67

View File

@@ -126,6 +126,12 @@ function! s:VimCssInit(update)
:set isk+=#
:set isk+=.
if !exists("b:color_pattern")
let b:color_pattern = {}
return
endif
if len(keys(b:color_pattern))>0
call s:RestoreColors()
return