mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-05-04 04:25:47 +08:00
highlighter: break out of loop at the end
thanks for mentioning @jottkaerr at https://github.com/vim-airline/vim-airline/commit/4d8a06a5a911bc5aac35504b0971365d528dae29#commitcomment-31275754
This commit is contained in:
@@ -167,6 +167,9 @@ function! s:GetHiCmd(list)
|
||||
let i = -1
|
||||
while i < 5
|
||||
let i += 1
|
||||
if i == 5
|
||||
break
|
||||
endif
|
||||
let item = get(a:list, i, '')
|
||||
if item is ''
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user