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



Author: jhs
Date: Thu Jan 10 12:34:08 2008
New Revision: 3444
URL: http://svn.gnome.org/viewvc/anjuta?rev=3444&view=rev

Log:
2008-01-10  Johannes Schmid <jhs gnome org>

	* plugins/language-support-cpp-java/cpp-java-assist.c:
	(on_assist_chosen):
	
	Fixed #508424 â Auto complete: previous char was removed when 
	pre TAB to auto complete.

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	Thu Jan 10 12:34:08 2008
@@ -728,6 +728,7 @@
 	{
 		IAnjutaIterable *cursor_iter =
 			ianjuta_editor_get_cell_iter (te, cur_pos, NULL);
+		ianjuta_iterable_next (iter, NULL);
 		ianjuta_editor_selection_set (IANJUTA_EDITOR_SELECTION (te),
 									  iter, cursor_iter, NULL);
 		ianjuta_editor_selection_replace (IANJUTA_EDITOR_SELECTION (te),
@@ -739,7 +740,8 @@
 	{
 		ianjuta_editor_insert (te, cur_pos, assistance->str, -1, NULL);
 	}
-	
+	g_object_unref (iter);
+
 	ianjuta_document_end_undo_action (IANJUTA_DOCUMENT (te), NULL);
 	
 	ianjuta_editor_assist_hide_suggestions (assist->priv->iassist, NULL);
@@ -748,7 +750,6 @@
 	if (add_brace_after_func)
 		cpp_java_assist_check (assist, FALSE, TRUE);
 	
-	g_object_unref (iter);
 	g_string_free (assistance, TRUE);
 }
 



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