csi: 'X': then 'end' parameter in term_erase() is *inclusive*

This commit is contained in:
Daniel Eklöf 2019-07-15 13:55:47 +02:00
parent 470489c3a3
commit f63df93e15
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
csi.c
View file

@ -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],