aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-03-23 11:13:26 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-03-23 11:13:26 -0700
commit0ecf294d3457cb00bca9b89eb3d87fb2e587671e (patch)
treecaeba9d857208e3dbc2f9c826af5fe9d1e65fb10 /expand.cpp
parent89da09636ee8f9ce0eaf41d31e3dcda73048e552 (diff)
Use natural (digit-sequence-aware) sorting for wildcard expansion
Fixes #1993
Diffstat (limited to 'expand.cpp')
-rw-r--r--expand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/expand.cpp b/expand.cpp
index c908cd9d..969fabac 100644
--- a/expand.cpp
+++ b/expand.cpp
@@ -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;
}