mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-22 20:01:26 +08:00
Catch trailing whitespace when matching output
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user