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)
|
||||
endfunction
|
||||
|
||||
function! StopTaskAndToggleWindow()
|
||||
AsyncStop
|
||||
call ToggleAsyncRunWindow()
|
||||
endfunction
|
||||
|
||||
function! ExecuteRunScript()
|
||||
exec "AsyncRun! -post=call\\ ToggleAsyncRunWindow() ./run"
|
||||
exec "AsyncRun! -post=call\\ StopTaskAndToggleWindow() ./run"
|
||||
endfunction
|
||||
|
||||
" Show results window the moment the async job starts
|
||||
|
|
Loading…
Reference in New Issue
Block a user