From 2b7c5db1880b54120841c441518108795cb85815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 27 Mar 2021 22:15:44 +0100 Subject: [PATCH] search: when matching cell content, treat empty cells as spaces --- search.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/search.c b/search.c index 30a50ae5..02cea9e0 100644 --- a/search.c +++ b/search.c @@ -241,6 +241,9 @@ matches_cell(const struct terminal *term, const struct cell *cell, size_t search base = composed->base; } + if (composed == NULL && base == 0 && term->search.buf[search_ofs] == L' ') + return 1; + if (wcsncasecmp(&base, &term->search.buf[search_ofs], 1) != 0) return -1;