From d3f8873469f5986e074dff532c3fe84a2d5ef2d6 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 29 Aug 2017 12:47:29 +0200 Subject: [PATCH] async: fix error, when mq is not enabled fixes #1551 --- autoload/airline/async.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/airline/async.vim b/autoload/airline/async.vim index f8d9d75..dc1cdc1 100644 --- a/autoload/airline/async.vim +++ b/autoload/airline/async.vim @@ -15,16 +15,16 @@ function! s:untracked_output(dict, buf) endfunction function! s:mq_output(buf, file) - let buf='' + let buf=a:buf if !empty(a:buf) if a:buf is# 'no patches applied' || \ a:buf =~# "unknown command 'qtop'" let buf = '' - elseif exists("b:mq") && b:mq isnot# a:buf + elseif exists("b:mq") && b:mq isnot# buf " make sure, statusline is updated unlet! b:airline_head endif - let b:mq = a:buf + let b:mq = buf endif if has_key(s:mq_jobs, a:file) call remove(s:mq_jobs, a:file)