hirc

IRC client
Log | Files | Refs

commit 4bcf78fb3680fa1e93c79a9b819c48b290b471b1
parent 3b8370e70fc41acf5764bad589ea56fdf2022ff4
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 15 Dec 2021 19:58:37 +0000

s/ui.c: scroll -1 always shows one more (unless scroll <= 0)

Diffstat:
Msrc/ui.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/ui.c b/src/ui.c @@ -1110,6 +1110,9 @@ ui_draw_main(void) { for (i=0, p = selected.history->history; p && p->next && i < windows[Win_main].scroll; i++) p = p->next; + if (i) + windows[Win_main].scroll = i; + y = windows[Win_main].h; for (; p && y > 0; p = p->next) { if (!(p->options & HIST_SHOW))