From 01afd43bc90408b43db906845245a4959c8ee3a0 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 12 Jul 2022 13:28:17 +0800 Subject: vim-patch:8.2.0275: some Ex code not covered by tests Problem: Some Ex code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5659) https://github.com/vim/vim/commit/406cd90f1963ca60813db91c413eef4b1b78ee44 --- src/nvim/testdir/test_window_cmd.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/nvim/testdir/test_window_cmd.vim') diff --git a/src/nvim/testdir/test_window_cmd.vim b/src/nvim/testdir/test_window_cmd.vim index 731b76c838..b7df750488 100644 --- a/src/nvim/testdir/test_window_cmd.vim +++ b/src/nvim/testdir/test_window_cmd.vim @@ -919,6 +919,14 @@ func Test_winpos_errors() call assert_fails('winpos 10', 'E466:') endfunc +" Test for +cmd in a :split command +func Test_split_cmd() + split +set\ readonly + call assert_equal(1, &readonly) + call assert_equal(2, winnr('$')) + close +endfunc + func Test_window_resize() throw 'Skipped: Nvim supports cmdheight=0' " Vertical :resize (absolute, relative, min and max size). -- cgit