anjuta r4716 - in trunk: . plugins/language-support-cpp-java



Author: jhs
Date: Mon Feb  9 13:31:17 2009
New Revision: 4716
URL: http://svn.gnome.org/viewvc/anjuta?rev=4716&view=rev

Log:
2009-02-09  Johannes Schmid  <jhs Obelix>

	* plugins/language-support-cpp-java/cpp-java-assist.c
	(cpp_java_assist_create_word_completion_cache),
	(cpp_java_assist_check):
	Avoid hang while pressing backspace

Modified:
   trunk/ChangeLog
   trunk/plugins/language-support-cpp-java/cpp-java-assist.c

Modified: trunk/plugins/language-support-cpp-java/cpp-java-assist.c
==============================================================================
--- trunk/plugins/language-support-cpp-java/cpp-java-assist.c	(original)
+++ trunk/plugins/language-support-cpp-java/cpp-java-assist.c	Mon Feb  9 13:31:17 2009
@@ -545,7 +545,7 @@
 												 
 				if (iter_file) 
 				{
-					completion = create_completion (assist->priv->iassist, iter_file, completion);
+					completion = create_completion (assist->priv->iassist, iter_file, NULL);
 					g_object_unref (iter_file);
 				}
 				g_object_unref (file);
@@ -569,7 +569,7 @@
 
 		if (iter_project) 
 		{
-			completion = create_completion (assist->priv->iassist, iter_project, NULL);
+			completion = create_completion (assist->priv->iassist, iter_project, completion);
 			g_object_unref (iter_project);
 		}
 		
@@ -832,8 +832,10 @@
 								 NULL);
 				DEBUG_PRINT ("Idle source added");
 			}
+			shown = cpp_java_assist_show_autocomplete (assist);
 		}
-		shown = cpp_java_assist_show_autocomplete (assist);
+		else
+			shown = FALSE;
 		if (!shown)
 			ianjuta_editor_assist_hide_suggestions (assist->priv->iassist,
 													NULL);



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