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