about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-09-02 16:52:57 -0400
committerJune McEnroe <june@causal.agency>2020-09-02 16:52:57 -0400
commit99612ad8eb6261fc37b179e7e22ca09d9a8ca6ab (patch)
tree63779c13247374cffc60258efcb4d9c1b5cc456c
parentActually insert blank lines in the soft buffer (diff)
downloadcatgirl-99612ad8eb6261fc37b179e7e22ca09d9a8ca6ab.tar.gz
catgirl-99612ad8eb6261fc37b179e7e22ca09d9a8ca6ab.zip
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.
-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;
 	}