vim-patch:8.1.0972: cannot switch from terminal window to next tabpage

Problem:    Cannot switch from terminal window to next tabpage.
Solution:   Make CTRL-W gt move to next tabpage.
72e83c1ae5
This commit is contained in:
We're Yet 2020-01-01 09:52:13 -08:00
parent 0c436559df
commit 42aa876488
2 changed files with 28 additions and 0 deletions

View File

@ -528,6 +528,9 @@ wingotofile:
cmdmod.tab = tabpage_index(curtab) + 1;
nchar = xchar;
goto wingotofile;
case 't': // CTRL-W gt: go to next tab page
goto_tabpage((int)Prenum);
break;
case 'e':
if (curwin->w_floating || !ui_has(kUIMultigrid)) {

View File

@ -0,0 +1,25 @@
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local command = helpers.command
local eq = helpers.eq
local feed = helpers.feed
local eval = helpers.eval
describe('tabpage', function()
before_each(clear)
it('advances to the next page via <C-W>gt', function()
-- add some tabpages
command('tabnew')
command('tabnew')
command('tabnew')
eq(4, eval('tabpagenr()'))
feed('<C-W>gt')
eq(1, eval('tabpagenr()'))
end)
end)