aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2026-06-03 23:43:48 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-06-12 11:55:09 +0000
commitf66a020bbae3df4b10030a263571defb5c5ff01d (patch)
tree672a9eda962fcc6695eff7d95ec04482d547ab79 /csi.c
parentmeson: require xkbcommon >= 1.6.0 (diff)
Fix #2377: DECCRA: swapped row-bounds check dropping multi-row copies
`dst_bottom > dst_top` holds for every multi-row destination (rows increase downward), so the guard rejected all multi-row copies. Flip to `dst_top > dst_bottom`, mirroring the sibling column check and DEC STD 070.
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/csi.c b/csi.c
index 176cc3ac..1f417155 100644
--- a/csi.c
+++ b/csi.c
@@ -2020,7 +2020,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
int dst_top = term_row_rel_to_abs(term, dst_rel_top);
int dst_bottom = term_row_rel_to_abs(term, dst_rel_bottom);
- if (unlikely(dst_left > dst_right || dst_bottom > dst_top))
+ if (unlikely(dst_left > dst_right || dst_top > dst_bottom))
break;
/*