Force stop an async run job when it closes

This commit is contained in:
Michael Campagnaro 2017-06-13 08:47:20 -04:00
parent 0fd9a3e781
commit 54c13ffc87

7
vimrc
View File

@ -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