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



Author: sgranjoux
Date: Wed Jul 23 20:10:46 2008
New Revision: 4097
URL: http://svn.gnome.org/viewvc/anjuta?rev=4097&view=rev

Log:
	* plugins/language-support-cpp-java/plugin.c:
	Fix #530630: Scintilla hand up after hit return


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

Modified: trunk/plugins/language-support-cpp-java/plugin.c
==============================================================================
--- trunk/plugins/language-support-cpp-java/plugin.c	(original)
+++ trunk/plugins/language-support-cpp-java/plugin.c	Wed Jul 23 20:10:46 2008
@@ -915,9 +915,8 @@
 			} while (ianjuta_iterable_previous (new_iter, NULL));
 			if (comment)
 			{
-				ianjuta_iterable_set_position (iter,
-											   ianjuta_iterable_get_position (new_iter, NULL) - 1, 
-											   NULL);
+				ianjuta_iterable_assign (iter, new_iter, NULL);
+				ianjuta_iterable_previous (iter, NULL);
 				g_object_unref (new_iter);
 				continue;
 			}
@@ -996,9 +995,7 @@
 						}
 						if (possible_comment)
 						{
-							ianjuta_iterable_set_position (new_iter, 
-														   ianjuta_iterable_get_position (prev, NULL),
-														   NULL);
+							ianjuta_iterable_assign (new_iter, prev, NULL);
 							g_object_unref (prev);
 							g_object_unref (next);
 							continue;
@@ -1010,9 +1007,8 @@
 			} while (ianjuta_iterable_previous (new_iter, NULL));
 			if (comment)
 			{
-				ianjuta_iterable_set_position (iter,
-											   ianjuta_iterable_get_position (new_iter, NULL) - 1, 
-											   NULL);
+				ianjuta_iterable_assign (iter, new_iter, NULL);
+				ianjuta_iterable_previous (iter, NULL);
 				g_object_unref (new_iter);
 				continue;
 			}



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