Skip to content

Commit

Permalink
fixed -focus=0 can't return previous tabpage when -pos=TAB
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed Dec 23, 2021
1 parent 96e048b commit 5c4a9e6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions plugin/asyncrun.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
" Maintainer: skywind3000 (at) gmail.com, 2016-2021
" Homepage: https://github.com/skywind3000/asyncrun.vim
"
" Last Modified: 2021/12/24 03:34
" Last Modified: 2021/12/24 05:22
"
" Run shell command in background and output to quickfix:
" :AsyncRun[!] [options] {cmd} ...
Expand Down Expand Up @@ -1436,7 +1436,11 @@ function! s:start_in_terminal(opts)
if hr >= 0
if focus == 0
exec has('nvim')? 'stopinsert' : ''
exec 'tabprevious'
if pos ==# 'TAB'
exec 'tabnext'
else
exec 'tabprevious'
endif
endif
endif
return 0
Expand Down Expand Up @@ -2042,7 +2046,7 @@ endfunc
" asyncrun - version
"----------------------------------------------------------------------
function! asyncrun#version()
return '2.9.6'
return '2.9.7'
endfunc


Expand Down

0 comments on commit 5c4a9e6

Please sign in to comment.