diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-12 14:36:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-12 14:36:05 +0800 |
| commit | 8b75ca734541a42bf0d3f3fd8e39e94662084895 (patch) | |
| tree | 688fb3b654823d7579964495fb4c5af58f7e7bd8 /src/nvim/testdir/test_window_cmd.vim | |
| parent | 540d1af90e2276a8bd3b5edb1a63c8225a1aa423 (diff) | |
| parent | 1abdb3224b177078b046873dadb81381960ad52b (diff) | |
| download | rneovim-8b75ca734541a42bf0d3f3fd8e39e94662084895.tar.gz rneovim-8b75ca734541a42bf0d3f3fd8e39e94662084895.tar.bz2 rneovim-8b75ca734541a42bf0d3f3fd8e39e94662084895.zip | |
Merge pull request #19332 from zeertzjq/vim-8.2.0270
vim-patch:8.2.{0270,2732}
Diffstat (limited to 'src/nvim/testdir/test_window_cmd.vim')
| -rw-r--r-- | src/nvim/testdir/test_window_cmd.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_window_cmd.vim b/src/nvim/testdir/test_window_cmd.vim index 21387111a3..731b76c838 100644 --- a/src/nvim/testdir/test_window_cmd.vim +++ b/src/nvim/testdir/test_window_cmd.vim @@ -893,6 +893,15 @@ func Test_window_only() new call assert_fails('only', 'E445:') only! + " Test for :only with a count + let wid = win_getid() + new + new + 3only + call assert_equal(1, winnr('$')) + call assert_equal(wid, win_getid()) + call assert_fails('close', 'E444:') + call assert_fails('%close', 'E16:') endfunc " Test for errors with :wincmd |