Mercurial > vim
diff src/testdir/test_terminal.vim @ 15933:b2423b31266f v8.1.0972
patch 8.1.0972: cannot switch from terminal window to next tabpage
commit https://github.com/vim/vim/commit/72e83c1ae535e2ebc35b114d34d0a811eb62b068
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 22 16:09:52 2019 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 22 Feb 2019 16:15:06 +0100 |
parents | fe7e94f39e7f |
children | c38fb03a6055 |
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -1571,6 +1571,8 @@ endfunc func Test_terminal_termwinkey() call assert_equal(1, winnr('$')) let thiswin = win_getid() + tabnew + tabnext let buf = Run_shell_in_terminal({}) let termwin = bufwinid(buf) @@ -1578,12 +1580,22 @@ func Test_terminal_termwinkey() call feedkeys("\<C-L>w", 'tx') call assert_equal(thiswin, win_getid()) 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()) + tabnext + call assert_equal(tnr, tabpagenr()) + call assert_equal(termwin, win_getid()) let job = term_getjob(buf) call feedkeys("\<C-L>\<C-C>", 'tx') call WaitForAssert({-> assert_equal("dead", job_status(job))}) set termwinkey& + tabnext + tabclose endfunc func Test_terminal_out_err()