aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-15 11:55:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-15 11:55:47 +0000
commitf63df93e155e7fa44bb1787f0722d24c0902c2b3 (patch)
tree6d0b7799e98928f2454b31bc49f7a968d743729d
parentvt: there are NULL entries in the alternate charset (diff)
csi: 'X': then 'end' parameter in term_erase() is *inclusive*
-rw-r--r--csi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/csi.c b/csi.c
index 42a87e3d..c2efa660 100644
--- a/csi.c
+++ b/csi.c
@@ -544,7 +544,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
term_erase(
term,
&term->cursor,
- &(struct coord){term->cursor.col + count, term->cursor.row});
+ &(struct coord){term->cursor.col + count - 1, term->cursor.row});
#if 0
memset(&term->grid->cur_line[term->cursor.col],