From f63df93e155e7fa44bb1787f0722d24c0902c2b3 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 15 Jul 2019 13:55:47 +0200 Subject: csi: 'X': then 'end' parameter in term_erase() is *inclusive* --- csi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'csi.c') 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], -- cgit v1.3