hirc

IRC client
Log | Files | Refs

commit eb0d2491aad749b774b6d7aebc02f4fd5618b602
parent 3a9642f10e41f2756a85e429ecae619c4033f077
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 28 Nov 2021 13:02:43 +0000

ui.c: don't draw line if len <= 0

Diffstat:
Mui.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui.c b/ui.c @@ -756,7 +756,7 @@ ui_draw_main(void) { for (p = selected.history->history; p && y > 0; p = p->next) { if (!(p->options & HIST_SHOW)) continue; - if (ui_hist_len(&windows[Win_main], p, &lines) == -1) + if (ui_hist_len(&windows[Win_main], p, &lines) <= 0) continue; y = y - lines; if (y < lines) {