aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-11-26 19:27:55 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-11-26 19:29:23 +0000
commitbe203aeae1280ad7cac3ec9e287d1dd97528f390 (patch)
tree86a6395594f56d97d8e36afada566041cf26eb60
parentosc8: replace grid_row_uri_range_add() with internal uri_range_append() (diff)
grid: bug: OSC-8 URIs were incorrectly skipped while resizing the alt screen
-rw-r--r--CHANGELOG.md2
-rw-r--r--grid.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c185dd72..9b928d68 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/grid.c b/grid.c
index a68f1ee4..92675145 100644
--- a/grid.c
+++ b/grid.c
@@ -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;
}