mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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
94ff09a093
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
e965b7ac5f
Co-authored-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: lilydjwg <lilydjwg@gmail.com>
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user