summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-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) {