aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/selection.c b/selection.c
index cd3780a7..8dc83906 100644
--- a/selection.c
+++ b/selection.c
@@ -321,8 +321,9 @@ extract_one(struct terminal *term, struct row *row, struct cell *cell,
assert(ctx->idx + 1 <= ctx->size);
- if (cell->wc >= COMB_CHARS_LO && cell->wc < (COMB_CHARS_LO + term->composed_count)) {
- const struct composed *composed = &term->composed[cell->wc - COMB_CHARS_LO];
+ if (cell->wc >= CELL_COMB_CHARS_LO &&
+ cell->wc < (CELL_COMB_CHARS_LO + term->composed_count)) {
+ const struct composed *composed = &term->composed[cell->wc - CELL_COMB_CHARS_LO];
ctx->buf[ctx->idx++] = composed->base;