summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWormHeamer2026-01-01 04:21:57 -0500
committerWormHeamer2026-01-01 04:21:57 -0500
commit74ea1e9de26f1ac7cffd193af6215f44b3b8b744 (patch)
treeb1dd4673fdc3d141b83925ff2cb969c4eb821055
parentfafa797d33d1e6fd0fa0cee9a8cd7eb90ba85782 (diff)
fix trailing whitespace visibility
-rw-r--r--main.c5
1 files 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': {