diff options
| author | WormHeamer | 2026-01-01 04:21:57 -0500 |
|---|---|---|
| committer | WormHeamer | 2026-01-01 04:21:57 -0500 |
| commit | 74ea1e9de26f1ac7cffd193af6215f44b3b8b744 (patch) | |
| tree | b1dd4673fdc3d141b83925ff2cb969c4eb821055 /main.c | |
| parent | fafa797d33d1e6fd0fa0cee9a8cd7eb90ba85782 (diff) | |
fix trailing whitespace visibility
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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': { |
