mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
selection: restore <= 1.12 behavior in block selection wrt empty cells
That is, highlight empty cells, regardless of whether they’re trailing or not.
This commit is contained in:
parent
4f06d413e2
commit
db2737b96a
1 changed files with 3 additions and 1 deletions
|
|
@ -1110,7 +1110,9 @@ selection_dirty_cells(struct terminal *term)
|
|||
int n_rects = -1;
|
||||
pixman_box32_t *boxes =
|
||||
pixman_region32_rectangles(&visible_and_selected, &n_rects);
|
||||
mark_selected_region(term, boxes, n_rects, true, false, false);
|
||||
|
||||
const bool highlight_empty = term->selection.kind == SELECTION_BLOCK;
|
||||
mark_selected_region(term, boxes, n_rects, true, false, highlight_empty);
|
||||
|
||||
pixman_region32_fini(&visible_and_selected);
|
||||
pixman_region32_fini(&view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue