diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-14 14:41:57 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-14 14:41:57 +0000 |
| commit | 5c99e8013b3e8fb68e55250be550e856636ccf7b (patch) | |
| tree | b4928daca1a7c75ae6bbbfa6d90d049c76aba607 /selection.c | |
| parent | selection: recognize empty padding cells in a forced linewrap (diff) | |
term: rename COMB_CHARS_LO,HI -> CELL_COMB_CHARS_LO,HI
Diffstat (limited to 'selection.c')
| -rw-r--r-- | selection.c | 5 |
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; |
