From 9513542c6daa640c1e342fcf817ad1829c9f1454 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Tue, 8 Sep 2020 14:54:51 -0400 Subject: Include DEL in characters ncurses will print in ^A form --- buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer.c b/buffer.c index 3795a24..91fe6b4 100644 --- a/buffer.c +++ b/buffer.c @@ -131,7 +131,7 @@ static int flow(struct Lines *hard, int cols, const struct Line *soft) { } else if (wc == L'\t') { // XXX: Assuming TABSIZE = 8. width += 8 - (width % 8); - } else if (wc < L' ') { + } else if (wc < L' ' || wc == L'\177') { // XXX: ncurses will render these as "^A". width += 2; } else if (wcwidth(wc) > 0) { -- cgit 1.4.1-2-gfad0