mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-18 16:43:06 -05:00
Go back to the correct tab when disabling Goyo (#24)
This commit is contained in:
@@ -115,6 +115,8 @@ function! s:tranquilize()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:goyo_on(width)
|
function! s:goyo_on(width)
|
||||||
|
let s:orig_tab = tabpagenr()
|
||||||
|
|
||||||
" New tab
|
" New tab
|
||||||
tab split
|
tab split
|
||||||
|
|
||||||
@@ -249,6 +251,7 @@ function! s:goyo_off()
|
|||||||
bd
|
bd
|
||||||
endif
|
endif
|
||||||
tabclose
|
tabclose
|
||||||
|
execute 'normal! '.s:orig_tab.'gt'
|
||||||
|
|
||||||
let wmh = remove(goyo_revert, 'winminheight')
|
let wmh = remove(goyo_revert, 'winminheight')
|
||||||
let wh = remove(goyo_revert, 'winheight')
|
let wh = remove(goyo_revert, 'winheight')
|
||||||
|
|||||||
Reference in New Issue
Block a user