From 2af9ba4eab33b986d6624773c6410d1d28ef50b4 Mon Sep 17 00:00:00 2001 From: Aditya-Sood Date: Thu, 26 Sep 2019 12:36:28 +0530 Subject: [PATCH] Readd original getNextSuggestion() --- src/reader.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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()) {