diff options
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': { |
