diff --git a/src/reader.cpp b/src/reader.cpp index 2960e4ace..87cedc550 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -902,6 +902,21 @@ bool Reader::searchSuggestionsSmart(const string& prefix, } /* Get next suggestion */ +bool Reader::getNextSuggestion(string& title) +{ + if (this->suggestionsOffset != this->suggestions.end()) { + /* title */ + title = (*(this->suggestionsOffset))[0]; + + /* increment the cursor for the next call */ + this->suggestionsOffset++; + + return true; + } + + return false; +} + bool Reader::getNextSuggestion(string& title, string& url) { if (this->suggestionsOffset != this->suggestions.end()) {