grid: bug: OSC-8 URIs were incorrectly skipped while resizing the alt screen

This commit is contained in:
Daniel Eklöf 2021-11-26 20:27:55 +01:00
parent 4eb0aa0f18
commit be203aeae1
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 3 additions and 1 deletions

View file

@ -51,6 +51,8 @@
* OSC-8 URIs in the last column
* OSC-8 URIs sometimes being applied to too many, and seemingly
unrelated cells (https://codeberg.org/dnkl/foot/issues/816).
* OSC-8 URIs incorrectly being dropped when resizing the terminal
window with the alternate screen active.
### Security

2
grid.c
View file

@ -337,7 +337,7 @@ grid_resize_without_reflow(
const struct row_uri_range *old_range =
&old_row->extra->uri_ranges.v[i];
if (old_range->start >= new_rows) {
if (old_range->start >= new_cols) {
/* The whole range is truncated */
continue;
}