We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9f8e500 + dc5f4a1 commit d9754f9Copy full SHA for d9754f9
plugin/asyncrun.vim
@@ -1481,10 +1481,10 @@ function! s:start_in_terminal(opts)
1481
if hr >= 0
1482
if focus == 0
1483
exec has('nvim')? 'stopinsert' : ''
1484
- if pos ==# 'TAB'
1485
- exec 'tabnext'
1486
- else
1487
- exec 'tabprevious'
+ let last_tid = tabpagenr('#')
+ if last_tid > 0
+ " Go to the last accessed tab page.
+ exec 'tabnext' last_tid
1488
endif
1489
1490
0 commit comments