diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-08-26 15:48:00 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-08-31 17:15:51 +0000 |
| commit | 2354298ecac8e08ecce8ff8b208cda0f0c6f5257 (patch) | |
| tree | a649fb5d4f34196fe7c32e10684082e19fe863ee | |
| parent | ci (sr.ht): pull directly from git.sr.ht (diff) | |
selection: restore <= 1.12 behavior in block selection wrt empty cells
That is, highlight empty cells, regardless of whether they’re trailing
or not.
| -rw-r--r-- | selection.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/selection.c b/selection.c index 5b65310c..5bf72e62 100644 --- a/selection.c +++ b/selection.c @@ -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); |
