Skip to content

Commit 632fc99

Browse files
committed
make CursorMoved responsible for initial parse
1 parent aa38bbc commit 632fc99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

autoload/css_color.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ function! css_color#enable()
235235
if len( b:css_color_grp ) | exe 'syn cluster colorableGroup add=' . join( b:css_color_grp, ',' ) | endif
236236
autocmd CSSColor CursorMoved,CursorMovedI <buffer> call s:parse_screen() | call s:create_matches()
237237
let b:css_color_off = 0
238-
call s:parse_screen()
239-
call s:create_matches()
238+
doautocmd CSSColor CursorMoved
240239
endfunction
241240

242241
function! css_color#disable()

0 commit comments

Comments
 (0)