mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-18 17:11:15 -03:00
Adjust prefix completions to sort alphabetically instead of by length.
Other completions are still sorted by length. https://github.com/fish-shell/fish-shell/issues/923
This commit is contained in:
@@ -1766,7 +1766,7 @@ int expand_string(const wcstring &input, std::vector<completion_t> &output, expa
|
||||
case 1:
|
||||
{
|
||||
res = EXPAND_WILDCARD_MATCH;
|
||||
sort_completions(expanded);
|
||||
std::sort(expanded.begin(), expanded.end(), completion_t::is_alphabetically_less_than);
|
||||
out->insert(out->end(), expanded.begin(), expanded.end());
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user