diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-21 17:18:52 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-21 17:18:52 -0700 |
commit | 04ea680e9a803440c85fefae0b4db329c65c1cb2 (patch) | |
tree | 95e7728b8b509617528782e9b50820d44fd950d9 /complete.cpp | |
parent | 3a940781d930118b3d3bfe3f9ae0c48e3dfaff37 (diff) |
Support for tab cyling through completions
Diffstat (limited to 'complete.cpp')
-rw-r--r-- | complete.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/complete.cpp b/complete.cpp index 11d689c6..4a9036ec 100644 --- a/complete.cpp +++ b/complete.cpp @@ -279,6 +279,21 @@ completion_t &completion_t::operator=(const completion_t &him) return *this; } +bool completion_t::operator < (const completion_t& rhs) const +{ + return this->completion < rhs.completion; +} + +bool completion_t::operator == (const completion_t& rhs) const +{ + return this->completion == rhs.completion; +} + +bool completion_t::operator != (const completion_t& rhs) const +{ + return ! (*this == rhs); +} + wcstring_list_t completions_to_wcstring_list( const std::vector<completion_t> &list ) { wcstring_list_t strings; |