commit c5d084f4515e8965110be9579c726c27cce0feba
parent 462539e21c1c85cd58bd471a27cd012f01daae6a
Author: Pavel Renev <an2qzavok@gmail.com>
Date: Mon, 18 Oct 2021 17:25:03 +0000
richterm: recalculate scroll.max.y on redraw
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/richterm.c b/richterm.c
@@ -688,6 +688,8 @@ redraw(Object *)
drawobject(obj, &cur);
}
rich.page.max = cur;
+ if (rich.page.scroll.y > rich.page.max.y)
+ rich.page.scroll.y = rich.page.max.y;
qunlock(rich.l);
}