highlighter: break out of loop at the end
thanks for mentioning @jottkaerr at
4d8a06a5a9 (commitcomment-31275754)
This commit is contained in:
parent
4d8a06a5a9
commit
e66d65ebf4
@ -167,6 +167,9 @@ function! s:GetHiCmd(list)
|
|||||||
let i = -1
|
let i = -1
|
||||||
while i < 5
|
while i < 5
|
||||||
let i += 1
|
let i += 1
|
||||||
|
if i == 5
|
||||||
|
break
|
||||||
|
endif
|
||||||
let item = get(a:list, i, '')
|
let item = get(a:list, i, '')
|
||||||
if item is ''
|
if item is ''
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user