From 74ea1e9de26f1ac7cffd193af6215f44b3b8b744 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Thu, 1 Jan 2026 04:21:57 -0500 Subject: fix trailing whitespace visibility --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index a6caab0..b52caeb 100644 --- a/main.c +++ b/main.c @@ -419,6 +419,7 @@ void draw(void *ctx) { VuiAttr norm = A_DEFAULT; VuiAttr sel = norm | A_REVERSE; VuiAttr txt = A_DEFAULT; + VuiAttr trailing_whitespace = BG_BLUE | FG_DEFAULT; vui_fill(' ', txt); { @@ -456,7 +457,7 @@ void draw(void *ctx) { x = lmarg; y++; } else if (is_space(c)) { - VuiAttr a = txt_chr(start) == '\n' ? norm : txt; + VuiAttr a = txt_chr(start) == '\n' ? trailing_whitespace : txt; if (c == '\t') { u32 n = 1 + (-(x+1) & 7); while (n--) vui_chra(x++, y, ' ', a); @@ -1125,7 +1126,7 @@ int main(int argc, const char **argv) { err(1, "shell_replace"); } } break; - + case ' ': switch ((u32)vui_key()) { case 'f': { -- cgit v1.2.3