From c7b458887737f33a0b21c1ab35854072eec795e8 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 20 Oct 2021 17:39:30 -0400 Subject: Only output style attribute if necessary --- bin/shotty.l | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/shotty.l b/bin/shotty.l index e9edb515..8018d785 100644 --- a/bin/shotty.l +++ b/bin/shotty.l @@ -493,7 +493,8 @@ static void span(const struct Cell *prev, const struct Cell *cell) { if (fg < 8) fg += 8; attr &= ~Bold; } - printf(Q("); + printf("%s>", (attr || colors ? "\"" : "")); } switch (cell->ch) { break; case L'&': printf("&"); -- cgit 1.4.1 d48a3a'>refs log tree commit diff
Commit message (Collapse)Author
2021-01-12Add htagml exampleJune McEnroe
2021-01-12Use mandoc and htagml for bin htmlJune McEnroe
2021-01-12Add htagmlJune McEnroe
2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe
2021-01-11Publish "Using vi"June McEnroe
2021-01-11Enable diff.colorMovedJune McEnroe
2021-01-10Set less search case-insensitiveJune McEnroe
2021-01-10Set EXINITJune McEnroe
neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated.
2021-01-09Add c -t flag to print expression typeJune McEnroe
Also add missing float case.
2021-01-05Update taglineJune McEnroe