comparison src/popupwin.c @ 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 71b766ba26a6
children ab7f050f4335
comparison
equal deleted inserted replaced
29039:bffa38742374 29040:5d71ed834c03
4106 if (wp->w_topline > 1 && sb_thumb_top == 0 && height > 1) 4106 if (wp->w_topline > 1 && sb_thumb_top == 0 && height > 1)
4107 sb_thumb_top = 1; // show it's scrolled 4107 sb_thumb_top = 1; // show it's scrolled
4108 last = total_height - top_off - wp->w_popup_border[2]; 4108 last = total_height - top_off - wp->w_popup_border[2];
4109 if (sb_thumb_top >= last) 4109 if (sb_thumb_top >= last)
4110 // show at least one character 4110 // show at least one character
4111 sb_thumb_top = last; 4111 sb_thumb_top = last - 1;
4112 4112
4113 if (wp->w_scrollbar_highlight != NULL) 4113 if (wp->w_scrollbar_highlight != NULL)
4114 attr_scroll = syn_name2attr(wp->w_scrollbar_highlight); 4114 attr_scroll = syn_name2attr(wp->w_scrollbar_highlight);
4115 else 4115 else
4116 attr_scroll = highlight_attr[HLF_PSB]; 4116 attr_scroll = highlight_attr[HLF_PSB];