From 6c1ea03e9c8dba405a28f965586f6b6a51caa3cd Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 27 Sep 2018 13:07:54 +0200 Subject: [PATCH] [pager] Do full fuzzy search Just like the completion code, this now matches e.g. `f-p` to `format-branch`. Fixes #5213. --- src/pager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pager.cpp b/src/pager.cpp index 591262b33..08ec14a9c 100644 --- a/src/pager.cpp +++ b/src/pager.cpp @@ -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) {