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:
Christian Brabandt 2018-11-13 09:06:39 +01:00
parent e66d65ebf4
commit 78e67897a4
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -165,11 +165,8 @@ function! s:GetHiCmd(list)
" a:list needs to have 5 items!
let res = ''
let i = -1
while i < 5
while i < 4
let i += 1
if i == 5
break
endif
let item = get(a:list, i, '')
if item is ''
continue