From 78e67897a4996068d83c87eaaa8b3319eb42719f Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 13 Nov 2018 09:06:39 +0100 Subject: [PATCH] highlight: fix previous commit differently Actually we can restrict the loop condition to only run 5 times instead of 6 (which was an oversight). --- autoload/airline/highlighter.vim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/autoload/airline/highlighter.vim b/autoload/airline/highlighter.vim index c477eaa..5d7ce04 100644 --- a/autoload/airline/highlighter.vim +++ b/autoload/airline/highlighter.vim @@ -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