diff options
author | We're Yet <58348703+butwerenotthereyet@users.noreply.github.com> | 2020-01-01 09:52:13 -0800 |
---|---|---|
committer | We're Yet <58348703+butwerenotthereyet@users.noreply.github.com> | 2020-01-03 06:01:47 -0800 |
commit | 42aa8764881ed8572d563766575c053db085f6db (patch) | |
tree | 1a718673f4733aaed1cb6277a44ea0a595fa20d5 /test/functional/normal/tabpage_spec.lua | |
parent | 0c436559dfba9e0bb7e6ce5a835ed8eee540205f (diff) | |
download | rneovim-42aa8764881ed8572d563766575c053db085f6db.tar.gz rneovim-42aa8764881ed8572d563766575c053db085f6db.tar.bz2 rneovim-42aa8764881ed8572d563766575c053db085f6db.zip |
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.
https://github.com/vim/vim/commit/72e83c1ae535e2ebc35b114d34d0a811eb62b068
Diffstat (limited to 'test/functional/normal/tabpage_spec.lua')
-rw-r--r-- | test/functional/normal/tabpage_spec.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/functional/normal/tabpage_spec.lua b/test/functional/normal/tabpage_spec.lua new file mode 100644 index 0000000000..68524eaf91 --- /dev/null +++ b/test/functional/normal/tabpage_spec.lua @@ -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) + |