Don't print timestamps for blank lines in bufferList
parent
609c9bd0ac
commit
86b79096e0
4
ui.c
4
ui.c
|
@ -616,6 +616,10 @@ static void bufferList(const struct Buffer *buffer) {
|
||||||
for (size_t i = 0; i < BufferCap; ++i) {
|
for (size_t i = 0; i < BufferCap; ++i) {
|
||||||
const struct Line *line = bufferSoft(buffer, i);
|
const struct Line *line = bufferSoft(buffer, i);
|
||||||
if (!line) continue;
|
if (!line) continue;
|
||||||
|
if (!line->str[0]) {
|
||||||
|
printf("\n");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
struct tm *tm = localtime(&line->time);
|
struct tm *tm = localtime(&line->time);
|
||||||
if (!tm) err(EX_OSERR, "localtime");
|
if (!tm) err(EX_OSERR, "localtime");
|
||||||
|
|
Loading…
Reference in New Issue