Force stop an async run job when it closes
This commit is contained in:
parent
0fd9a3e781
commit
54c13ffc87
7
vimrc
7
vimrc
|
@ -256,8 +256,13 @@ function! ToggleAsyncRunWindow()
|
||||||
call asyncrun#quickfix_toggle(8)
|
call asyncrun#quickfix_toggle(8)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! StopTaskAndToggleWindow()
|
||||||
|
AsyncStop
|
||||||
|
call ToggleAsyncRunWindow()
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! ExecuteRunScript()
|
function! ExecuteRunScript()
|
||||||
exec "AsyncRun! -post=call\\ ToggleAsyncRunWindow() ./run"
|
exec "AsyncRun! -post=call\\ StopTaskAndToggleWindow() ./run"
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Show results window the moment the async job starts
|
" Show results window the moment the async job starts
|
||||||
|
|
Loading…
Reference in New Issue
Block a user