summary refs log tree commit diff
diff options
context:
space:
mode:
authorC. McEnroe2020-09-02 19:31:05 -0400
committerC. McEnroe2020-09-02 19:31:05 -0400
commita46fbea0ec38a153c07a06ea0177b136db3e3ecf (patch)
tree579328e3daf0fee7a51012102c68e80b1df83efd
parent96386adac3cf4e0ac48c5b8f39b719f194f8d2e6 (diff)
Give blank lines timestamps
Otherwise the zero timestamps totally break save data loading! Bad!
-rw-r--r--ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index 2177f10..ab557d3 100644
--- a/ui.c
+++ b/ui.c
@@ -542,7 +542,7 @@ void uiWrite(uint id, enum Heat heat, const time_t *src, const char *str) {
 	}
 	if (window->mark && heat > Cold) {
 		if (!window->unreadWarm++) {
-			lines += bufferPush(window->buffer, COLS, false, Cold, 0, "");
+			lines += bufferPush(window->buffer, COLS, false, Cold, ts, "");
 		}
 		if (heat > window->heat) window->heat = heat;
 		statusUpdate();
@@ -787,7 +787,7 @@ static void showAuto(void) {
 }
 
 static void insertBlank(struct Window *window) {
-	int lines = bufferPush(window->buffer, COLS, false, Cold, 0, "");
+	int lines = bufferPush(window->buffer, COLS, false, Cold, time(NULL), "");
 	window->unreadHard += lines;
 	if (window->scroll) {
 		windowScroll(window, lines);