summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-08-13 23:14:34 -0400
committerJune McEnroe <june@causal.agency>2019-08-13 23:14:34 -0400
commit1b2d9f047efbde244ca9470f2e96476401c96e96 (patch)
treea2cc4c400e8f2a0db64d5af1749fd5b617496219
parentAdd minimums of 1 to some parameters (diff)
downloadstream-1b2d9f047efbde244ca9470f2e96476401c96e96.tar.gz
stream-1b2d9f047efbde244ca9470f2e96476401c96e96.zip
Box ICH and DCH to R-X
-rw-r--r--term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term.c b/term.c
index 0554ec2..954ef32 100644
--- a/term.c
+++ b/term.c
@@ -181,12 +181,12 @@ ACTION(ech) {
 }
 
 ACTION(dch) {
-	uint n = BOX(1, P(0, 1), t->cols - X);
+	uint n = BOX(1, P(0, 1), R - X);
 	move(C(Y, X), C(Y, X + n), t->cols - X - n);
 	erase(t->style, C(Y, t->cols - n), C(Y, R));
 }
 ACTION(ich) {
-	uint n = BOX(1, P(0, 1), t->cols - X);
+	uint n = BOX(1, P(0, 1), R - X);
 	move(C(Y, X + n), C(Y, X), t->cols - X - n);
 	erase(t->style, C(Y, X), C(Y, X + n - 1));
 }
td>Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe 2020-01-28Change scout sensitivity to 1.4June McEnroe 2020-01-28Import shows.txtJune McEnroe