aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-06-04 05:43:18 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-04 05:43:18 +0000
commitdd43afd7547f4440abb0414ed4ba8ab4092ca266 (patch)
tree4baa8510576d261948ce204ca2d963cf0e679c09 /selection.c
parentMerge branch 'restore-sighup-handler' (diff)
parentchangelog: text reflow performance (diff)
Merge branch 'chunked-reflow'
Closes #504
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/selection.c b/selection.c
index 4862def2..2b312139 100644
--- a/selection.c
+++ b/selection.c
@@ -623,9 +623,9 @@ set_pivot_point_for_block_and_char_wise(struct terminal *term,
}
xassert(term->grid->rows[pivot_start->row & (term->grid->num_rows - 1)]->
- cells[pivot_start->col].wc < CELL_SPACER);
+ cells[pivot_start->col].wc <= CELL_SPACER);
xassert(term->grid->rows[pivot_end->row & (term->grid->num_rows - 1)]->
- cells[pivot_end->col].wc < CELL_SPACER);
+ cells[pivot_end->col].wc <= CELL_SPACER + 1);
}
void