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.weechat-hashes
parent
4ca49debb1
commit
cf42595515
4
ui.c
4
ui.c
|
@ -568,6 +568,10 @@ void uiWrite(uint id, enum Heat heat, const time_t *src, const char *str) {
|
||||||
if (!window->unreadWarm++) {
|
if (!window->unreadWarm++) {
|
||||||
int lines = bufferPush(window->buffer, COLS, false, Cold, ts, "");
|
int lines = bufferPush(window->buffer, COLS, false, Cold, ts, "");
|
||||||
if (window->scroll) windowScroll(window, lines);
|
if (window->scroll) windowScroll(window, lines);
|
||||||
|
if (window->unreadSoft > 1) {
|
||||||
|
window->unreadSoft++;
|
||||||
|
window->unreadHard += lines;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (heat > window->heat) window->heat = heat;
|
if (heat > window->heat) window->heat = heat;
|
||||||
statusUpdate();
|
statusUpdate();
|
||||||
|
|
Loading…
Reference in New Issue