From cf4259551503049a1ebb50cd7d9ceac172ec7c3b Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 7 Sep 2020 22:21:41 -0400 Subject: Add blank line to unread if there are already unread This fixes the inconsistent M-u behaviour when catgirl is restarting and reconnecting to pounce, for example. --- ui.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui.c') diff --git a/ui.c b/ui.c index 9499b23..25de2ce 100644 --- a/ui.c +++ b/ui.c @@ -568,6 +568,10 @@ void uiWrite(uint id, enum Heat heat, const time_t *src, const char *str) { if (!window->unreadWarm++) { int lines = bufferPush(window->buffer, COLS, false, Cold, ts, ""); if (window->scroll) windowScroll(window, lines); + if (window->unreadSoft > 1) { + window->unreadSoft++; + window->unreadHard += lines; + } } if (heat > window->heat) window->heat = heat; statusUpdate(); -- cgit 1.4.1