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.
master
C. McEnroe 2020-09-02 16:52:57 -04:00
parent d00b3d3b70
commit 99612ad8eb
1 changed files with 1 additions and 1 deletions

2
ui.c
View File

@ -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)]; struct Window *window = windows.ptrs[windowFor(id)];
time_t ts = (src ? *src : time(NULL)); time_t ts = (src ? *src : time(NULL));
if (heat < Cold && window->ignore) { if (heat < Cold && window->ignore) {
bufferPush(window->buffer, COLS, heat, ts, str); window->unreadHard += bufferPush(window->buffer, COLS, heat, ts, str);
return; return;
} }