Skip to content

Commit fe21c24

Browse files
author
skywind3000
committed
2.7.7 new autocmd AsyncRunInterrupt for AsyncStop
1 parent a471d5c commit fe21c24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugin/asyncrun.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016, 2017, 2018, 2019, 2020
44
" Homepage: http://www.vim.org/scripts/script.php?script_id=5431
55
"
6-
" Last Modified: 2020/12/29 21:56
6+
" Last Modified: 2020/12/29 22:16
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -815,6 +815,7 @@ function! s:AsyncRun_Job_Stop(how)
815815
if s:async_nvim == 0
816816
if job_status(s:async_job) == 'run'
817817
if job_stop(s:async_job, l:how)
818+
call s:AutoCmd('Interrupt')
818819
return 0
819820
else
820821
return -2
@@ -824,6 +825,7 @@ function! s:AsyncRun_Job_Stop(how)
824825
endif
825826
else
826827
if s:async_job > 0
828+
call s:AutoCmd('Interrupt')
827829
silent! call jobstop(s:async_job)
828830
endif
829831
endif
@@ -1860,7 +1862,7 @@ endfunc
18601862
" asyncrun - version
18611863
"----------------------------------------------------------------------
18621864
function! asyncrun#version()
1863-
return '2.7.6'
1865+
return '2.7.7'
18641866
endfunc
18651867

18661868

0 commit comments

Comments
 (0)