Skip to content

Commit 5c4a9e6

Browse files
author
skywind3000
committed
fixed -focus=0 can't return previous tabpage when -pos=TAB
1 parent 96e048b commit 5c4a9e6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

plugin/asyncrun.vim

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016-2021
44
" Homepage: https://github.com/skywind3000/asyncrun.vim
55
"
6-
" Last Modified: 2021/12/24 03:34
6+
" Last Modified: 2021/12/24 05:22
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -1436,7 +1436,11 @@ function! s:start_in_terminal(opts)
14361436
if hr >= 0
14371437
if focus == 0
14381438
exec has('nvim')? 'stopinsert' : ''
1439-
exec 'tabprevious'
1439+
if pos ==# 'TAB'
1440+
exec 'tabnext'
1441+
else
1442+
exec 'tabprevious'
1443+
endif
14401444
endif
14411445
endif
14421446
return 0
@@ -2042,7 +2046,7 @@ endfunc
20422046
" asyncrun - version
20432047
"----------------------------------------------------------------------
20442048
function! asyncrun#version()
2045-
return '2.9.6'
2049+
return '2.9.7'
20462050
endfunc
20472051

20482052

0 commit comments

Comments
 (0)