diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-03-27 21:15:44 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-03-28 11:21:18 +0000 |
| commit | 2b7c5db1880b54120841c441518108795cb85815 (patch) | |
| tree | 32feac26bb15b4e21c0050b1bbee9490ac9b6152 | |
| parent | Merge branch 'pgo-clang-11' (diff) | |
search: when matching cell content, treat empty cells as spaces
| -rw-r--r-- | search.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |
