mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 00:01:15 -03:00
Make the pager search field allow searching on the prefix
This commit is contained in:
@@ -366,7 +366,7 @@ bool pager_t::completion_info_passes_filter(const comp_t &info) const
|
||||
/* Match against the completion strings */
|
||||
for (size_t i=0; i < info.comp.size(); i++)
|
||||
{
|
||||
if (string_fuzzy_match_string(needle, info.comp.at(i), limit).type != fuzzy_match_none)
|
||||
if (string_fuzzy_match_string(needle, prefix + info.comp.at(i), limit).type != fuzzy_match_none)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user