about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-25 17:27:54 -0500
committerJune McEnroe <june@causal.agency>2021-01-25 17:27:54 -0500
commit86b79096e0f6178fc9cb8b1679072e75cf7a3e1e (patch)
treed51ea807ca09effffca34e8fe09bdef2b0130a00
parentDo not copy time to wrapped lines (diff)
downloadcatgirl-86b79096e0f6178fc9cb8b1679072e75cf7a3e1e.tar.gz
catgirl-86b79096e0f6178fc9cb8b1679072e75cf7a3e1e.zip
Don't print timestamps for blank lines in bufferList
-rw-r--r--ui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index ed0cb6a..1a16ca0 100644
--- a/ui.c
+++ b/ui.c
@@ -616,6 +616,10 @@ static void bufferList(const struct Buffer *buffer) {
 	for (size_t i = 0; i < BufferCap; ++i) {
 		const struct Line *line = bufferSoft(buffer, i);
 		if (!line) continue;
+		if (!line->str[0]) {
+			printf("\n");
+			continue;
+		}
 
 		struct tm *tm = localtime(&line->time);
 		if (!tm) err(EX_OSERR, "localtime");
e='2022-07-08 17:22:36 -0400'>2022-07-08Remove TOURJune McEnroe 2022-07-03Add The Bone Shard EmperorJune McEnroe 2022-06-25Bump xterm font size to 12June McEnroe 2022-06-10Handle subshells (and functions) inside substitutionsJune McEnroe 2022-06-10Switch to jorts Install scriptJune McEnroe 2022-06-08Indicate if still reading or no resultsJune McEnroe 2022-06-08Add Maiden, Mother, CroneJune McEnroe 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe