mq: remove trailing \n from system()

fixes #1563
This commit is contained in:
Christian Brabandt 2017-09-14 11:43:53 +02:00
parent ea46192561
commit 8a3e3e2794
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 2 additions and 1 deletions

View File

@ -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=''