From e66d65ebf4faf7845a6b3dfeae094ec6c01cf6ca Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 13 Nov 2018 08:50:10 +0100 Subject: [PATCH] highlighter: break out of loop at the end thanks for mentioning @jottkaerr at https://github.com/vim-airline/vim-airline/commit/4d8a06a5a911bc5aac35504b0971365d528dae29#commitcomment-31275754 --- autoload/airline/highlighter.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/airline/highlighter.vim b/autoload/airline/highlighter.vim index a241b54..c477eaa 100644 --- a/autoload/airline/highlighter.vim +++ b/autoload/airline/highlighter.vim @@ -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