summary refs log tree commit diff
path: root/ui.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-10 03:10:08 -0500
committerJune McEnroe <june@causal.agency>2020-02-10 03:10:08 -0500
commit7a8024ae3dbe0c2c52b6536fb73dd33071e00637 (patch)
tree3ca092a51c268357f219bd0c46d2559bb7c17be7 /ui.c
parentMove scroll marker on resize (diff)
downloadcatgirl-7a8024ae3dbe0c2c52b6536fb73dd33071e00637.tar.gz
catgirl-7a8024ae3dbe0c2c52b6536fb73dd33071e00637.zip
Always increase unreadLines
So that if you switch to a window and some new activity happens before
you press M-u, it'll still jump to the right place.
Diffstat (limited to '')
-rw-r--r--ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index d35c02d..1d1e46c 100644
--- a/ui.c
+++ b/ui.c
@@ -497,7 +497,7 @@ void uiWrite(size_t id, enum Heat heat, const time_t *src, const char *str) {
 		statusUpdate();
 	}
 	lines += wordWrap(window->pad, str);
-	if (window->mark) window->unreadLines += lines;
+	window->unreadLines += lines;
 	if (window->scroll) windowScroll(window, lines);
 	if (heat > Warm) beep();
 }