[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:
Fabian Homborg 2018-09-27 13:07:54 +02:00
parent 1f440eb063
commit 6c1ea03e9c

View file

@ -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) {