26 if (this->suggestions.empty()) {
27 this->InitSuggestions(this->textbuf->
GetText());
28 if (this->suggestions.empty()) {
31 this->ApplySuggestion(
prefix, suggestions[0]);
36 if (this->current_suggestion_index + 1 < this->suggestions.size()) {
37 this->ApplySuggestion(
prefix, this->suggestions[++this->current_suggestion_index]);
std::string_view GetText() const
Get the current text.
void Assign(std::string_view text)
Copy a string into the textbuffer.