Mercurial > vim
diff src/testdir/test_popupwin.vim @ 29040:5d71ed834c03 v8.2.5042
patch 8.2.5042: scrollbar thumb in tall scrolled popup not visible
Commit: https://github.com/vim/vim/commit/89b25585ccecf223ca41ca212df8ebc227fc035a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 30 13:20:56 2022 +0100
patch 8.2.5042: scrollbar thumb in tall scrolled popup not visible
Problem: Scrollbar thumb in tall scrolled popup not visible.
Solution: Show at least one thumb character. (fixes 10492)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 30 May 2022 14:30:05 +0200 |
parents | ad99b7b9df13 |
children | ab7f050f4335 |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -2344,8 +2344,8 @@ func Test_popup_scrollbar() endfunc func ScrollBottom() call popup_clear() - let id = CreatePopup(range(20)->map({k, v -> string(v)})) - call popup_setoptions(id, #{firstline: 20}) + let id = CreatePopup(range(100)->map({k, v -> string(v)})) + call popup_setoptions(id, #{firstline: 100, minheight: 9, maxheight: 9}) endfunc map <silent> <F3> :call test_setmouse(5, 36)<CR> map <silent> <F4> :call test_setmouse(4, 42)<CR>