Index: gtksourceview/gtksourceiter.c
===================================================================
RCS file: /cvs/gnome/gtksourceview/gtksourceview/gtksourceiter.c,v
retrieving revision 1.10
diff -u -p -r1.10 gtksourceiter.c
--- gtksourceview/gtksourceiter.c	27 Feb 2005 21:37:51 -0000	1.10
+++ gtksourceview/gtksourceiter.c	28 Feb 2005 09:14:14 -0000
@@ -220,6 +220,12 @@ forward_chars_with_skipping (GtkTextIter
 	{
 		gboolean ignored = FALSE;
 
+		/* minimal workaround to avoid the infinite loop of bug #168247.
+		 * It doesn't fix the problemjust the symptom...
+		 */
+		if (gtk_text_iter_is_end (iter))
+			return;
+
 		if (skip_nontext && gtk_text_iter_get_char (iter) == GTK_TEXT_UNKNOWN_CHAR)
 			ignored = TRUE;
 
