mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
term_osc8_close(): the URL *end* column is inclusive
This commit is contained in:
parent
a99f9c9341
commit
663c43c139
1 changed files with 6 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue