Skip to content

Commit 40f3176

Browse files
authored
Merge pull request #274 from n0bra1n3r/fix-no-strip-on-fail
Strip message even if process fails
2 parents bd240b2 + 38510b6 commit 40f3176

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugin/asyncrun.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,9 @@ function! s:AsyncRun_Job_OnFinish()
606606
else
607607
let l:text = 'with code '.s:async_code
608608
let l:text = "[Finished in ".l:last." seconds ".l:text."]"
609-
call s:AppendText([l:text], 1)
609+
if !s:async_info.strip
610+
call s:AppendText([l:text], 1)
611+
endif
610612
let g:asyncrun_status = "failure"
611613
endif
612614
let s:async_state = 0

0 commit comments

Comments
 (0)