From 4f4e86e76be7acb303099148bf8814396bad81e0 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Sat, 3 Jan 2026 18:05:08 -0500 Subject: fix broken ctrl char printing --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 7b9f10c..6e97d9b 100644 --- a/main.c +++ b/main.c @@ -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) { -- cgit v1.2.3