summary refs log tree commit diff
path: root/ui.c
diff options
context:
space:
mode:
authorC. McEnroe2020-09-02 16:52:57 -0400
committerC. McEnroe2020-09-02 16:52:57 -0400
commit99612ad8eb6261fc37b179e7e22ca09d9a8ca6ab (patch)
tree63779c13247374cffc60258efcb4d9c1b5cc456c /ui.c
parentd00b3d3b70f326a18b58e6652428e928236e7c65 (diff)
Still add ignored lines to unreadHard
Scrolling is still affected by hidden lines (which I'm not sure yet is
good or not), so for M-u to work it needs to count ignored lines.
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index 93c98bb..a6f78da 100644
--- a/ui.c
+++ b/ui.c
@@ -538,7 +538,7 @@ void uiWrite(uint id, enum Heat heat, const time_t *src, const char *str) {
 	struct Window *window = windows.ptrs[windowFor(id)];
 	time_t ts = (src ? *src : time(NULL));
 	if (heat < Cold && window->ignore) {
-		bufferPush(window->buffer, COLS, heat, ts, str);
+		window->unreadHard += bufferPush(window->buffer, COLS, heat, ts, str);
 		return;
 	}