highlighter: break out of loop at the end

thanks for mentioning @jottkaerr at
4d8a06a5a9 (commitcomment-31275754)
This commit is contained in:
Christian Brabandt 2018-11-13 08:50:10 +01:00
parent 4d8a06a5a9
commit e66d65ebf4
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -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