diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-03-23 11:13:26 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-03-23 11:13:26 -0700 |
commit | 0ecf294d3457cb00bca9b89eb3d87fb2e587671e (patch) | |
tree | caeba9d857208e3dbc2f9c826af5fe9d1e65fb10 /expand.cpp | |
parent | 89da09636ee8f9ce0eaf41d31e3dcda73048e552 (diff) |
Use natural (digit-sequence-aware) sorting for wildcard expansion
Fixes #1993
Diffstat (limited to 'expand.cpp')
-rw-r--r-- | expand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1923,7 +1923,7 @@ int expand_string(const wcstring &input, std::vector<completion_t> &output, expa case 1: { res = EXPAND_WILDCARD_MATCH; - std::sort(expanded.begin(), expanded.end(), completion_t::is_alphabetically_less_than); + std::sort(expanded.begin(), expanded.end(), completion_t::is_naturally_less_than); out->insert(out->end(), expanded.begin(), expanded.end()); break; } |