term_osc8_close(): the URL *end* column is inclusive

This commit is contained in:
Daniel Eklöf 2021-02-13 14:16:53 +01:00
parent a99f9c9341
commit 663c43c139
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -3047,6 +3047,12 @@ term_osc8_close(struct terminal *term)
.row = grid_row_absolute(term->grid, term->grid->cursor.point.row),
};
/* end is *inclusive */
if (--end.col < 0) {
end.row--;
end.col = term->cols - 1;
}
int r = start.row;
int start_col = start.col;
do {