diff options
author | June McEnroe <june@causal.agency> | 2019-08-13 23:14:34 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-08-13 23:14:34 -0400 |
commit | 1b2d9f047efbde244ca9470f2e96476401c96e96 (patch) | |
tree | a2cc4c400e8f2a0db64d5af1749fd5b617496219 | |
parent | Add minimums of 1 to some parameters (diff) | |
download | stream-1b2d9f047efbde244ca9470f2e96476401c96e96.tar.gz stream-1b2d9f047efbde244ca9470f2e96476401c96e96.zip |
Box ICH and DCH to R-X
-rw-r--r-- | term.c | 4 |
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)); } |