1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2022-05-30 13:20:56 +01:00
parent 9e636b9d2e
commit 89b25585cc
4 changed files with 12 additions and 10 deletions

View File

@@ -4108,7 +4108,7 @@ update_popups(void (*win_update)(win_T *wp))
last = total_height - top_off - wp->w_popup_border[2];
if (sb_thumb_top >= last)
// show at least one character
sb_thumb_top = last;
sb_thumb_top = last - 1;
if (wp->w_scrollbar_highlight != NULL)
attr_scroll = syn_name2attr(wp->w_scrollbar_highlight);