mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-16 22:05:21 -05:00
Merge branch 'search-treat-empty-cells-as-spaces'
This commit is contained in:
commit
6ae14614a5
2 changed files with 4 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
* Update PGO build instructions in `INSTALL.md`
|
||||
(https://codeberg.org/dnkl/foot/issues/418).
|
||||
* In scrollback search mode, empty cells can now be matched by spaces.
|
||||
|
||||
|
||||
### Deprecated
|
||||
|
|
|
|||
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