From 73a1238205bdd7a658e8da3dacb76fca9e161b8b Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 14 Dec 2016 16:10:33 +0100 Subject: [PATCH] wrong quoting of condition --- autoload/airline/extensions/default.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/default.vim b/autoload/airline/extensions/default.vim index cead1b1a..7c209a15 100644 --- a/autoload/airline/extensions/default.vim +++ b/autoload/airline/extensions/default.vim @@ -45,8 +45,8 @@ endfunction " deactivate it, unless it is fixed (7.4.1511) if s:section_use_groups && (v:version >= 704 || (v:version >= 703 && has('patch81'))) function! s:add_section(builder, context, key) - let condition = '(a:key is# "warning" || a:key is# "error")'. - \ '&& (v:version == 704 && !has("patch1511"))' + let condition = (a:key is# "warning" || a:key is# "error") && + \ (v:version == 704 && !has("patch1511")) " i have no idea why the warning section needs special treatment, but it's " needed to prevent separators from showing up if ((a:key == 'error' || a:key == 'warning') && empty(s:get_section(a:context.winnr, a:key)))