aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--selection.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/selection.c b/selection.c
index 1c432e75..85cc6a61 100644
--- a/selection.c
+++ b/selection.c
@@ -928,7 +928,9 @@ mark_selected_region(struct terminal *term, pixman_box32_t *boxes,
for (int c = box->x1, empty_count = 0; c < box->x2; c++) {
struct cell *cell = &row->cells[c];
- if (cell->wc == 0 && !highlight_empty) {
+ if ((cell->wc == 0 || cell->wc == CELL_SPACER) &&
+ !highlight_empty)
+ {
/*
* We used to highlight empty cells *if* they were
* followed by non-empty cell(s), since this