summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWormHeamer2026-01-03 18:05:08 -0500
committerWormHeamer2026-01-03 18:05:08 -0500
commit4f4e86e76be7acb303099148bf8814396bad81e0 (patch)
treebdb879548fce80a4d38adf67cb5a0c917f20ea0e
parent378cf3f1920a62e2ed00000c66a3548baedfce5a (diff)
fix broken ctrl char printing
-rw-r--r--main.c4
1 files 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) {