mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-26 05:45:22 +08:00
Make the pager search field allow searching on the prefix
This commit is contained in:
parent
ef9f2ab31f
commit
9c7d1dbb6f
@ -366,7 +366,7 @@ bool pager_t::completion_info_passes_filter(const comp_t &info) const
|
|||||||
/* Match against the completion strings */
|
/* Match against the completion strings */
|
||||||
for (size_t i=0; i < info.comp.size(); i++)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user