[anjuta/gnome-2-32] language-support-cpp: Don't show duplicated results in autocompletion



commit e55da56ec8da458739d00eb4d286e43a47c790ec
Author: Johannes Schmid <jhs gnome org>
Date:   Mon Oct 25 14:45:40 2010 +0200

    language-support-cpp: Don't show duplicated results in autocompletion

 .../language-support-cpp-java/cpp-java-assist.c    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/cpp-java-assist.c b/plugins/language-support-cpp-java/cpp-java-assist.c
index bf07d69..15f204b 100644
--- a/plugins/language-support-cpp-java/cpp-java-assist.c
+++ b/plugins/language-support-cpp-java/cpp-java-assist.c
@@ -619,8 +619,8 @@ on_symbol_search_complete (IAnjutaSymbolQuery *query, IAnjutaIterable* symbols,
 	g_completion_add_items (assist->priv->completion_cache, proposals);
 	gboolean running = assist->priv->async_system_id || assist->priv->async_file_id ||
 		assist->priv->async_project_id;
-	
-	cpp_java_assist_populate_real (assist, !running);
+	if (!running)
+		cpp_java_assist_populate_real (assist, TRUE);
 	g_list_free (proposals);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]