From 97611a1e8c5602c261808b9cc473d6c0656e87be Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 31 Jul 2015 17:25:53 +0200 Subject: [PATCH] Removed 'No suggestions found...'. Going to add a status label later, which shows if the current tab is parsing or doing autocomplete in the background. --- src/source.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/source.cc b/src/source.cc index c1231e5..6771c28 100644 --- a/src/source.cc +++ b/src/source.cc @@ -838,13 +838,11 @@ void Source::ClangViewAutocomplete::autocomplete() { completion_dialog->add_row(ss.str() + " --> " + return_value, data.brief_comments); } } - if (rows->empty()) { - (*rows)["No suggestions found..."] = ""; - completion_dialog->add_row("No suggestions found..."); + if (!rows->empty()) { + completion_dialog_shown=true; + get_source_buffer()->begin_user_action(); + completion_dialog->show(); } - completion_dialog_shown=true; - get_source_buffer()->begin_user_action(); - completion_dialog->show(); } else start_autocomplete();