aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-06-27 11:19:19 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-06-27 11:19:19 +0000
commit3715a37be9078fb2ab755adfcfa010d687322333 (patch)
treedd383ec8d0167e9fef37cc46729402285ab8d553
parentsixel: split: make sure relative row/column values are bounded (diff)
sixel: split_by_rectangle: bug: typo in boundary check
-rw-r--r--sixel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sixel.c b/sixel.c
index aaf5941e..2d04f742 100644
--- a/sixel.c
+++ b/sixel.c
@@ -296,7 +296,7 @@ sixel_split_by_rectangle(struct terminal *term, int _row,
(start <= six_end && end >= six_end) ||
(start >= six_start || end <= six_end))) ||
(!six_wraps && wraps &&
- ((six_start <= start && six_end >= end) || /* Sixel croses region start boundary */
+ ((six_start <= start && six_end >= start) || /* Sixel croses region start boundary */
(six_start <= end && six_end >= end) || /* Sixel crosses region end boundary */
(six_start >= start || six_end <= end))) /* Sixel is fully enclosed by region */
)