diff options
| author | WormHeamer | 2026-01-03 18:05:08 -0500 |
|---|---|---|
| committer | WormHeamer | 2026-01-03 18:05:08 -0500 |
| commit | 4f4e86e76be7acb303099148bf8814396bad81e0 (patch) | |
| tree | bdb879548fce80a4d38adf67cb5a0c917f20ea0e | |
| parent | 378cf3f1920a62e2ed00000c66a3548baedfce5a (diff) | |
fix broken ctrl char printing
| -rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -638,8 +638,8 @@ void draw_buf(EditBuf *eb) { } else { vui_chra(x++, y, ' ', a); } - } else if (c < 0x20) { - x += vui_aprintf(x, y, FG_CYAN, "<%02>", c); + } else if (c < 0x20 || c == 0x7f) { + x += vui_aprintf(x, y, FG_CYAN, "<%02x>", c); } else if (c) { vui_chra(x++, y, c, txt); } else if (x >= COLS) { |
