Skip to content

Commit

Permalink
Fix range error in neovim tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rbong committed Sep 25, 2024
1 parent 8b2fe66 commit b5e3ec2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions autoload/flog/test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ function! flog#test#ShowNvimBufHl() abort
let l:start_virtcol = virtcol([l:row + 1, l:start_col])
let l:end_virtcol = virtcol([l:row + 1, l:details.end_col]) - 1

for l:virtcol in range(l:start_virtcol, l:end_virtcol)
let l:hl_groups[l:virtcol] = l:details.hl_group
endfor
if l:end_virtcol > l:start_virtcol
for l:virtcol in range(l:start_virtcol, l:end_virtcol)
let l:hl_groups[l:virtcol] = l:details.hl_group
endfor
endif
endfor

" Build output
Expand Down

0 comments on commit b5e3ec2

Please sign in to comment.