commit 58143731f1a6db77f271eed1cd4ada82538ad17b
parent 6266cdad49c73aa908f2b684b65ba691dc9b45b9
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Thu, 20 Nov 2025 22:55:13 +0100
filter/indent: fix lost of last color after new-line
I dont know why its happend, but this is a working fix.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/filter/indent.c b/filter/indent.c
@@ -70,7 +70,7 @@ main(void)
while ((word = strsep(&next, " ")) != NULL) {
tw -= strlen(word) + 1;
if (tw < 0 && !first)
- fputs("\n ", stdout);
+ printf("\n\033[%dm ", color);
if (tw < 0)
tw = cols - pw - strlen(word);