File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,13 @@ endfunction
184
184
185
185
function ! s: create_matches ()
186
186
call s: clear_matches ()
187
- if ! &l: cursorline | return | endif
187
+
188
+ " WARNING! Do not make it be one-liner by using '|' separator, it causes this bug:
189
+ " https://github.com/ap/vim-css-color/issues/95
190
+ if ! &l: cursorline
191
+ return
192
+ endif
193
+
188
194
" adds matches based that duplicate the highlighted colors on the current line
189
195
let lnr = line (' .' )
190
196
let group = ' '
@@ -231,7 +237,12 @@ function! css_color#reinit()
231
237
endfunction
232
238
233
239
function ! css_color#enable ()
234
- if len ( b: css_color_grp ) | exe ' syn cluster colorableGroup add=' . join ( b: css_color_grp , ' ,' ) | endif
240
+ " WARNING! Do not make it be one-liner by using '|' separator, it causes this bug:
241
+ " https://github.com/ap/vim-css-color/issues/95
242
+ if len ( b: css_color_grp )
243
+ exe ' syn cluster colorableGroup add=' . join ( b: css_color_grp , ' ,' )
244
+ endif
245
+
235
246
autocmd CSSColor CursorMoved,CursorMovedI <buffer> call s: parse_screen () | call s: create_matches ()
236
247
let b: css_color_off = 0
237
248
call s: parse_screen ()
You can’t perform that action at this time.
0 commit comments