mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-08 10:06:22 -05:00
selection: fix bad assertion
When there are multiple multi-column characters back-to-back, the cell before the pivot end point may in fact be a SPACER+1 cell.
This commit is contained in:
parent
a003e56fdc
commit
cb83d60089
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue