diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-22 17:56:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-22 17:56:43 +0100 |
commit | 882d02eeb571a13a502fe82a04c9eaffa630c294 (patch) | |
tree | b5a3b2e670f613526993632c19391c259c23b9c0 /src/testdir/test_terminal.vim | |
parent | cd62512c5595fa1f7a7f2c6ec1a90ea6bde3ad50 (diff) | |
download | vim-git-882d02eeb571a13a502fe82a04c9eaffa630c294.tar.gz |
patch 8.1.0974: cannot switch from terminal window to previous tabpagev8.1.0974
Problem: Cannot switch from terminal window to previous tabpage.
Solution: Make CTRL-W gT move to previous tabpage.
Diffstat (limited to 'src/testdir/test_terminal.vim')
-rw-r--r-- | src/testdir/test_terminal.vim | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index ee50b570b..e5a7be5a8 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -1569,10 +1569,14 @@ func Test_terminal_termwinsize_mininmum() endfunc func Test_terminal_termwinkey() + " make three tabpages, terminal in the middle + 0tabnew + tabnext + tabnew + tabprev call assert_equal(1, winnr('$')) + call assert_equal(2, tabpagenr()) let thiswin = win_getid() - tabnew - tabnext let buf = Run_shell_in_terminal({}) let termwin = bufwinid(buf) @@ -1582,11 +1586,16 @@ func Test_terminal_termwinkey() call feedkeys("\<C-W>w", 'tx') call assert_equal(termwin, win_getid()) - let tnr = tabpagenr() call feedkeys("\<C-L>gt", "xt") - call assert_notequal(tnr, tabpagenr()) + call assert_equal(3, tabpagenr()) + tabprev + call assert_equal(2, tabpagenr()) + call assert_equal(termwin, win_getid()) + + call feedkeys("\<C-L>gT", "xt") + call assert_equal(1, tabpagenr()) tabnext - call assert_equal(tnr, tabpagenr()) + call assert_equal(2, tabpagenr()) call assert_equal(termwin, win_getid()) let job = term_getjob(buf) @@ -1596,6 +1605,8 @@ func Test_terminal_termwinkey() set termwinkey& tabnext tabclose + tabprev + tabclose endfunc func Test_terminal_out_err() |