diff options
Diffstat (limited to '')
-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)); } |