diff --git a/vimrc b/vimrc index a5807b3..da18935 100644 --- a/vimrc +++ b/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