mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
search: when matching cell content, treat empty cells as spaces
This commit is contained in:
parent
a8c5168516
commit
2b7c5db188
1 changed files with 3 additions and 0 deletions
3
search.c
3
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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue