aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'search.c')
-rw-r--r--search.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/search.c b/search.c
index 859608f5..8f28a656 100644
--- a/search.c
+++ b/search.c
@@ -245,10 +245,9 @@ matches_cell(const struct terminal *term, const struct cell *cell, size_t search
wchar_t base = cell->wc;
const struct composed *composed = NULL;
- if (base >= CELL_COMB_CHARS_LO &&
- base < (CELL_COMB_CHARS_LO + term->composed_count))
+ if (base >= CELL_COMB_CHARS_LO && base <= CELL_COMB_CHARS_HI)
{
- composed = &term->composed[base - CELL_COMB_CHARS_LO];
+ composed = composed_lookup(term->composed, base - CELL_COMB_CHARS_LO);
base = composed->chars[0];
}