Support for tab cyling through completions

https://github.com/fish-shell/fish-shell/issues/84
This commit is contained in:
ridiculousfish
2012-08-21 17:18:52 -07:00
parent 3a940781d9
commit 04ea680e9a
3 changed files with 129 additions and 28 deletions

View File

@@ -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;