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 /reader.cpp | |
parent | 89da09636ee8f9ce0eaf41d31e3dcda73048e552 (diff) |
Use natural (digit-sequence-aware) sorting for wildcard expansion
Fixes #1993
Diffstat (limited to 'reader.cpp')
-rw-r--r-- | reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()); } |