mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
[pager] Do full fuzzy search
Just like the completion code, this now matches e.g. `f-p` to `format-branch`. Fixes #5213.
This commit is contained in:
parent
1f440eb063
commit
6c1ea03e9c
1 changed files with 2 additions and 2 deletions
|
@ -346,8 +346,8 @@ bool pager_t::completion_info_passes_filter(const comp_t &info) const {
|
|||
|
||||
const wcstring &needle = this->search_field_line.text;
|
||||
|
||||
// We do substring matching.
|
||||
const fuzzy_match_type_t limit = fuzzy_match_substring;
|
||||
// We do full fuzzy matching just like the completion code itself.
|
||||
const fuzzy_match_type_t limit = fuzzy_match_none;
|
||||
|
||||
// Match against the description.
|
||||
if (string_fuzzy_match_string(needle, info.desc, limit).type != fuzzy_match_none) {
|
||||
|
|
Loading…
Reference in a new issue