aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.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 /reader.cpp
parent89da09636ee8f9ce0eaf41d31e3dcda73048e552 (diff)
Use natural (digit-sequence-aware) sorting for wildcard expansion
Fixes #1993
Diffstat (limited to 'reader.cpp')
-rw-r--r--reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/reader.cpp b/reader.cpp
index 13937f11..5231699f 100644
--- a/reader.cpp
+++ b/reader.cpp
@@ -867,7 +867,7 @@ bool reader_data_t::expand_abbreviation_as_necessary(size_t cursor_backtrack)
/** Sorts and remove any duplicate completions in the list. */
static void sort_and_make_unique(std::vector<completion_t> &l)
{
- sort(l.begin(), l.end(), completion_t::is_alphabetically_less_than);
+ sort(l.begin(), l.end(), completion_t::is_naturally_less_than);
l.erase(std::unique(l.begin(), l.end(), completion_t::is_alphabetically_equal_to), l.end());
}