Skip to content

Commit d05bfb6

Browse files
committed
Fix range check
1 parent b5e3ec2 commit d05bfb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/flog/test.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function! flog#test#ShowNvimBufHl() abort
2121
let l:start_virtcol = virtcol([l:row + 1, l:start_col])
2222
let l:end_virtcol = virtcol([l:row + 1, l:details.end_col]) - 1
2323

24-
if l:end_virtcol > l:start_virtcol
24+
if l:end_virtcol >= l:start_virtcol
2525
for l:virtcol in range(l:start_virtcol, l:end_virtcol)
2626
let l:hl_groups[l:virtcol] = l:details.hl_group
2727
endfor

0 commit comments

Comments
 (0)