diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-03-28 12:22:34 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-03-28 12:22:34 +0000 |
| commit | 6ae14614a57d0e996121b1043b0fdf0032ca27ba (patch) | |
| tree | 3812d1a380f74d30747402ce54efd1f1a694cf87 /search.c | |
| parent | Merge branch 'sixel-trimming' (diff) | |
| parent | changelog: spaces matches empty cells in scrollback search mode (diff) | |
Merge branch 'search-treat-empty-cells-as-spaces'
Diffstat (limited to 'search.c')
| -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; |
