Force stop an async run job when it closes
This commit is contained in:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user