diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-12-30 19:06:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-30 19:06:31 +0800 |
commit | d077e31cc9dda36f2eb030146a10a308bbc542af (patch) | |
tree | a77f0c050af213f6c9b9290a8ad69954edff1bd9 | |
parent | 7b739248a183dc56e38441a79d1630205750924d (diff) | |
download | rneovim-d077e31cc9dda36f2eb030146a10a308bbc542af.tar.gz rneovim-d077e31cc9dda36f2eb030146a10a308bbc542af.tar.bz2 rneovim-d077e31cc9dda36f2eb030146a10a308bbc542af.zip |
vim-patch:9.1.0978: GUI tests sometimes fail when setting 'scroll' options (#31785)
Problem: GUI tests sometimes fail when setting 'scroll' options
Solution: decrease the 'scroll' and 'scrolljump' option value from 20 to
15, in case the Gui window is not large enough to handle 20.
tests: decrease the scroll and scrolljump values
the gui tests sometimes fail with:
```
From test_options_all.vim:
Found errors in Test_opt_set_scroll():
Caught exception in Test_opt_set_scroll(): Vim(set):E49: Invalid scroll size: scroll=20 @ command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[617]..function RunTheTest[57]..Test_opt_set_scroll, line 7
Found errors in Test_opt_set_scrolljump():
Caught exception in Test_opt_set_scrolljump(): Vim(set):E49: Invalid scroll size: scrolljump=20 @ command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[617]..function RunTheTest[57]..Test_opt_set_scrolljump, line 9
```
closes: vim/vim#16337
https://github.com/vim/vim/commit/2e1f757f7b52a00b77eb19648b7ea46e932eff2b
Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | test/old/testdir/gen_opt_test.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/old/testdir/gen_opt_test.vim b/test/old/testdir/gen_opt_test.vim index a2ad1eb8b4..3802ee3fc9 100644 --- a/test/old/testdir/gen_opt_test.vim +++ b/test/old/testdir/gen_opt_test.vim @@ -120,8 +120,8 @@ let test_values = { \ 'numberwidth': [[1, 4, 8, 10, 11, 20], [-1, 0, 21]], \ 'regexpengine': [[0, 1, 2], [-1, 3, 999]], \ 'report': [[0, 1, 2, 9999], [-1]], - \ 'scroll': [[0, 1, 2, 20], [-1, 999]], - \ 'scrolljump': [[-100, -1, 0, 1, 2, 20], [-101, 999]], + \ 'scroll': [[0, 1, 2, 15], [-1, 999]], + \ 'scrolljump': [[-100, -1, 0, 1, 2, 15], [-101, 999]], \ 'scrolloff': [[0, 1, 8, 999], [-1]], \ 'shiftwidth': [[0, 1, 8, 999], [-1]], \ 'sidescroll': [[0, 1, 8, 999], [-1]], |