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 /complete.h | |
parent | 89da09636ee8f9ce0eaf41d31e3dcda73048e552 (diff) |
Use natural (digit-sequence-aware) sorting for wildcard expansion
Fixes #1993
Diffstat (limited to 'complete.h')
-rw-r--r-- | complete.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -123,7 +123,9 @@ public: completion_t &operator=(const completion_t &); /* Compare two completions. No operating overlaoding to make this always explicit (there's potentially multiple ways to compare completions). */ - static bool is_alphabetically_less_than(const completion_t &a, const completion_t &b); + + /* "Naturally less than" means in a natural ordering, where digits are treated as numbers. For example, foo10 is naturally greater than foo2 (but alphabetically less than it) */ + static bool is_naturally_less_than(const completion_t &a, const completion_t &b); static bool is_alphabetically_equal_to(const completion_t &a, const completion_t &b); }; |