mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-24 22:21:15 -03:00
Use natural (digit-sequence-aware) sorting for wildcard expansion
Fixes #1993
This commit is contained in:
@@ -324,9 +324,9 @@ completion_t &completion_t::operator=(const completion_t &him)
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool completion_t::is_alphabetically_less_than(const completion_t &a, const completion_t &b)
|
||||
bool completion_t::is_naturally_less_than(const completion_t &a, const completion_t &b)
|
||||
{
|
||||
return a.completion < b.completion;
|
||||
return wcsfilecmp(a.completion.c_str(), b.completion.c_str()) < 0;
|
||||
}
|
||||
|
||||
bool completion_t::is_alphabetically_equal_to(const completion_t &a, const completion_t &b)
|
||||
|
||||
Reference in New Issue
Block a user