Catch trailing whitespace when matching output

This commit is contained in:
Gideon VanRiette committed 2017-09-18 09:02:39 -05:00
1 parent 8a3e3e2794
commit a763c6b53f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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