highlight: fix previous commit differently
Actually we can restrict the loop condition to only run 5 times instead of 6 (which was an oversight).
This commit is contained in:
parent
e66d65ebf4
commit
78e67897a4
@ -165,11 +165,8 @@ function! s:GetHiCmd(list)
|
|||||||
" a:list needs to have 5 items!
|
" a:list needs to have 5 items!
|
||||||
let res = ''
|
let res = ''
|
||||||
let i = -1
|
let i = -1
|
||||||
while i < 5
|
while i < 4
|
||||||
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