Skip to content

Commit

Permalink
Merge pull request #249 from JS-Zheng/master
Browse files Browse the repository at this point in the history
fix: tab page restoration when `focus=0` & `reuse=1`
  • Loading branch information
skywind3000 authored Jun 14, 2022
2 parents 9f8e500 + dc5f4a1 commit d9754f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/asyncrun.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1481,10 +1481,10 @@ function! s:start_in_terminal(opts)
if hr >= 0
if focus == 0
exec has('nvim')? 'stopinsert' : ''
if pos ==# 'TAB'
exec 'tabnext'
else
exec 'tabprevious'
let last_tid = tabpagenr('#')
if last_tid > 0
" Go to the last accessed tab page.
exec 'tabnext' last_tid
endif
endif
endif
Expand Down

0 comments on commit d9754f9

Please sign in to comment.