diff 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
line wrap: on
line diff
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -4108,7 +4108,7 @@ update_popups(void (*win_update)(win_T *
 	    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);