From 8a3e3e279435d9875a3e263a838d0c41df3caeb0 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 14 Sep 2017 11:43:53 +0200 Subject: [PATCH] mq: remove trailing \n from system() fixes #1563 --- autoload/airline/extensions/branch.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index c681b99..6152eff 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -130,7 +130,8 @@ function! s:update_hg_branch(...) elseif has("nvim") call airline#async#nvim_get_mq_async(cmd, expand('%:p')) else - let output=system(cmd) + " remove \n at the end of the command + let output=system(cmd)[0:-2] if output is# 'no patches applied' || \ output =~# "unknown command 'qtop'" let b:mq=''