Catch trailing whitespace when matching output

This commit is contained in:
Gideon VanRiette
2017-09-16 13:53:31 -05:00
parent 8a3e3e2794
commit a763c6b53f
2 changed files with 2 additions and 2 deletions

View File

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