From 1b2d9f047efbde244ca9470f2e96476401c96e96 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 13 Aug 2019 23:14:34 -0400 Subject: Box ICH and DCH to R-X --- term.c | 4 ++-- 1 file 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)); } -- cgit 1.4.1