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_help.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_help.vim')
| -rw-r--r-- | src/nvim/testdir/test_help.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_help.vim b/src/nvim/testdir/test_help.vim index dbb36facee..19c0fcd820 100644 --- a/src/nvim/testdir/test_help.vim +++ b/src/nvim/testdir/test_help.vim @@ -141,6 +141,17 @@ func Test_helptag_cmd() call delete('Xdir', 'rf') endfunc +" Test for setting the 'helpheight' option in the help window +func Test_help_window_height() + let &cmdheight = &lines - 24 + set helpheight=10 + help + set helpheight=14 + call assert_equal(14, winheight(0)) + set helpheight& cmdheight=1 + close +endfunc + func Test_help_long_argument() try exe 'help \%' .. repeat('0', 1021) |