Skip to content

Commit

Permalink
Fix test highlight range
Browse files Browse the repository at this point in the history
  • Loading branch information
rbong committed Sep 25, 2024
1 parent d1a0fb7 commit 7e37580
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions autoload/flog/test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ function! flog#test#ShowNvimBufHl() abort
endif
let l:hl_groups = l:line_hl_groups[l:row]

let l:start_virtcol = virtcol([l:row + 1, l:start_col])
let l:start_virtcol = virtcol([l:row + 1, l:start_col]) - 1
let l:end_virtcol = virtcol([l:row + 1, l:details.end_col]) - 1

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
for l:virtcol in range(l:start_virtcol, l:end_virtcol)
let l:hl_groups[l:virtcol] = l:details.hl_group
endfor
endfor

" Build output
Expand Down

0 comments on commit 7e37580

Please sign in to comment.