summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-09-08 14:54:51 -0400
committerJune McEnroe <june@causal.agency>2020-09-08 14:54:51 -0400
commit9513542c6daa640c1e342fcf817ad1829c9f1454 (patch)
treeab8b5522f396be70c570d6fb252e2740fe540746
parentAdd blank line to unread if there are already unread (diff)
downloadcatgirl-9513542c6daa640c1e342fcf817ad1829c9f1454.tar.gz
catgirl-9513542c6daa640c1e342fcf817ad1829c9f1454.zip
Include DEL in characters ncurses will print in ^A form
-rw-r--r--buffer.c2
1 files changed, 1 insertions, 1 deletions
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) {
4:59 -0400'>2018-08-06Rewrite line editing again, add formattingJune McEnroe 2018-08-06Fix allocation size in vaswprintfJune McEnroe 2018-08-06Implement word wrappingJune McEnroe 2018-08-06Use wchar_t strings for all of UIJune McEnroe 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe 2018-08-04Handle /topicJune McEnroe