Skip to content

Commit 6aa147b

Browse files
committed
terminate cursorline emulation at synmaxcol
1 parent 10eae53 commit 6aa147b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/css_color.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function! s:create_matches()
189189
let lnr = line('.')
190190
let group = ''
191191
let groupstart = 0
192-
let endcol = col('$')
192+
let endcol = &l:synmaxcol ? &l:synmaxcol : col('$')
193193
for col in range( 1, endcol )
194194
let nextgroup = col < endcol ? synIDattr( synID( lnr, col, 1 ), 'name' ) : ''
195195
if group == nextgroup | continue | endif

0 commit comments

Comments
 (0)