Skip to content

Commit deb4111

Browse files
author
skywind3000
committed
2.6.6 new terminal pos "TAB" to display tab on the left of current tab
1 parent 3395b7d commit deb4111

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

plugin/asyncrun.vim

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016, 2017, 2018, 2019, 2020
44
" Homepage: http://www.vim.org/scripts/script.php?script_id=5431
55
"
6-
" Last Modified: 2020/03/09 16:39
6+
" Last Modified: 2020/03/11 14:52
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -1238,9 +1238,12 @@ function! s:start_in_terminal(opts)
12381238
endif
12391239
endfor
12401240
let focus = get(a:opts, 'focus', 1)
1241-
if pos == 'tab'
1241+
if pos ==? 'tab'
12421242
if get(a:opts, 'reuse', 0) == 0
12431243
exec "tab split"
1244+
if pos ==# 'TAB'
1245+
exec "-tabmove"
1246+
endif
12441247
else
12451248
let avail = -1
12461249
for i in range(tabpagenr('$'))
@@ -1265,6 +1268,9 @@ function! s:start_in_terminal(opts)
12651268
endfor
12661269
if avail < 0
12671270
exec "tab split"
1271+
if pos ==# 'TAB'
1272+
exec "-tabmove"
1273+
endif
12681274
else
12691275
exec 'tabn ' . avail
12701276
endif
@@ -1821,7 +1827,7 @@ endfunc
18211827
" asyncrun - version
18221828
"----------------------------------------------------------------------
18231829
function! asyncrun#version()
1824-
return '2.6.5'
1830+
return '2.6.6'
18251831
endfunc
18261832

18271833

0 commit comments

Comments
 (0)