From a763c6b53f29f80bd5f6ec3d5d6a2bf7e8feeff1 Mon Sep 17 00:00:00 2001 From: Gideon VanRiette Date: Sat, 16 Sep 2017 13:53:31 -0500 Subject: [PATCH] Catch trailing whitespace when matching output --- autoload/airline/async.vim | 2 +- autoload/airline/extensions/branch.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/async.vim b/autoload/airline/async.vim index ee5165e..197da66 100644 --- a/autoload/airline/async.vim +++ b/autoload/airline/async.vim @@ -17,7 +17,7 @@ endfunction function! s:mq_output(buf, file) let buf=a:buf if !empty(a:buf) - if a:buf is# 'no patches applied' || + if a:buf is# 'no patches applied ' || \ a:buf =~# "unknown command 'qtop'" let buf = '' elseif exists("b:mq") && b:mq isnot# buf diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index 6152eff..b63183b 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -132,7 +132,7 @@ function! s:update_hg_branch(...) else " remove \n at the end of the command let output=system(cmd)[0:-2] - if output is# 'no patches applied' || + if output is# 'no patches applied ' || \ output =~# "unknown command 'qtop'" let b:mq='' else