diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-09-22 10:48:46 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-09-22 12:40:26 +0800 |
| commit | dd2b7586f36ab10232d9024ddf2dfb436518269e (patch) | |
| tree | 2bdb7ae6e53e777adfc21d721f93c6a795df006d /src/nvim/testdir/test_window_cmd.vim | |
| parent | 5d1cb73e7f17c29fc9e68ba293f63d8f8e71c264 (diff) | |
| download | rneovim-dd2b7586f36ab10232d9024ddf2dfb436518269e.tar.gz rneovim-dd2b7586f36ab10232d9024ddf2dfb436518269e.tar.bz2 rneovim-dd2b7586f36ab10232d9024ddf2dfb436518269e.zip | |
vim-patch:8.2.2979: not all options code is covered by tests
Problem: Not all options code is covered by tests.
Solution: Add more tests for options. (Yegappan Lakshmanan, closes vim/vim#8369)
https://github.com/vim/vim/commit/5958549760652c173b703613b9cbf09b25a4eddb
Diffstat (limited to 'src/nvim/testdir/test_window_cmd.vim')
| -rw-r--r-- | src/nvim/testdir/test_window_cmd.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_window_cmd.vim b/src/nvim/testdir/test_window_cmd.vim index 1f9d6b59b7..b64f44360b 100644 --- a/src/nvim/testdir/test_window_cmd.vim +++ b/src/nvim/testdir/test_window_cmd.vim @@ -433,7 +433,15 @@ func Test_window_width() call assert_inrange(ww1, ww1 + 1, ww2) call assert_inrange(ww3, ww3 + 1, ww2) - bw Xa Xb Xc + " when the current window width is less than the new 'winwidth', the current + " window width should be increased. + enew | only + split + 10vnew + set winwidth=15 + call assert_equal(15, winwidth(0)) + + %bw! endfunc func Test_equalalways_on_close() |