commit 3e655d3e42ee0abf6337f69d2fde654157c93da4
parent 7c38f428f445e47fa7aee9bdc08c2d4a0bbad22d
Author: Jan Edmund Lazo <jan.lazo@mail.utoronto.ca>
Date: Mon, 21 Jul 2025 00:35:49 -0400
vim-patch:9.1.0063: GTK code can be improved
Problem: GTK code can be improved
Solution: Improve GTK code for initial Wayland support
(lilydjwg)
related: vim/vim#9639
https://github.com/vim/vim/commit/94ff09a0935bc78fd81e9c79f099d42c94e3c218
vim-patch:9.1.1453: tests: Test_geometry() may fail
Problem: tests: Test_geometry() may fail
(Gary Johnson)
Solution: allow a slightly smaller value when checking the number of
lines.
fixes: vim/vim#17491
https://github.com/vim/vim/commit/e965b7ac5f3bad78c66fe83d4f536ef0237fbee6
Co-authored-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: lilydjwg <lilydjwg@gmail.com>
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/old/testdir/test_startup.vim b/test/old/testdir/test_startup.vim
@@ -540,8 +540,10 @@ func Test_geometry()
" Depending on the GUI library and the windowing system the final size
" might be a bit different, allow for some tolerance. Tuned based on
" actual failures.
- call assert_inrange(31, 35, str2nr(lines[0]))
- call assert_equal('13', lines[1])
+ call assert_inrange(30, 35, str2nr(lines[0]))
+ " for some reason, the window may contain fewer lines than requested
+ " for GTK, so allow some tolerance
+ call assert_inrange(8, 13, str2nr(lines[1]))
call assert_equal('41', lines[2])
call assert_equal('150', lines[3])
call assert_equal('[41, 150]', lines[4])