commit 8cf61af5511c3dc0b230079e230e01d325a870bd
parent 778f000a3b40a72c5ba3345e186f118759259537
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 11 Mar 2024 10:55:07 +0100
indicator: do not oversize the scroller when softwrapping
This fixes https://savannah.gnu.org/bugs/?65445.
Bug existed since version 5.7, commit 49d8b99e.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/winio.c b/src/winio.c
@@ -3066,7 +3066,7 @@ void draw_scrollbar(void)
int lowest = (fromline * editwinrows) / totallines;
int highest = lowest + (editwinrows * coveredlines) / totallines;
- if (editwinrows > totallines)
+ if (editwinrows > totallines && !ISSET(SOFTWRAP))
highest = editwinrows;
for (int row = 0; row < editwinrows; row++) {