aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.h
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 /complete.h
parent89da09636ee8f9ce0eaf41d31e3dcda73048e552 (diff)
Use natural (digit-sequence-aware) sorting for wildcard expansion
Fixes #1993
Diffstat (limited to 'complete.h')
-rw-r--r--complete.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/complete.h b/complete.h
index 36f1d6a1..99dcbf6a 100644
--- a/complete.h
+++ b/complete.h
@@ -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);
};