search: when matching cell content, treat empty cells as spaces

This commit is contained in:
Daniel Eklöf 2021-03-27 22:15:44 +01:00
parent a8c5168516
commit 2b7c5db188
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;