Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugin/semhl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function! s:semHighlight()
let curline = getline(buflen)
let index = 0
while 1
let match = matchstr(curline, pattern, index)
let [match, start_at, stop_at] = matchstrpos(curline, pattern, index)

if (empty(match))
break
Expand All @@ -129,7 +129,7 @@ function! s:semHighlight()
let cur_color = (cur_color + 1) % colorLen
endif

let index += len(match) + 1
let index = stop_at
endwhile
let buflen -= 1
endwhile
Expand Down