Include DEL in characters ncurses will print in ^A form

weechat-hashes
C. McEnroe 2020-09-08 14:54:51 -04:00
parent cf42595515
commit 9513542c6d
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ static int flow(struct Lines *hard, int cols, const struct Line *soft) {
} else if (wc == L'\t') { } else if (wc == L'\t') {
// XXX: Assuming TABSIZE = 8. // XXX: Assuming TABSIZE = 8.
width += 8 - (width % 8); width += 8 - (width % 8);
} else if (wc < L' ') { } else if (wc < L' ' || wc == L'\177') {
// XXX: ncurses will render these as "^A". // XXX: ncurses will render these as "^A".
width += 2; width += 2;
} else if (wcwidth(wc) > 0) { } else if (wcwidth(wc) > 0) {