--- gtksourceview-1.0.1-orig/gtksourceview/gtksourceview.c	2005-01-07 11:22:10.000000000 +0900
+++ gtksourceview-1.0.1/gtksourceview/gtksourceview.c	2005-01-07 11:29:48.752089456 +0900
@@ -1710,6 +1710,11 @@
 
 		if (indent != NULL)
 		{
+			if (gtk_im_context_filter_keypress (GTK_TEXT_VIEW(view)->im_context, event))
+			{
+				GTK_TEXT_VIEW(view)->need_im_reset = TRUE;
+				return TRUE;
+			}
 			/* Insert new line and auto-indent. */
 			gtk_text_buffer_begin_user_action (buf);
 			gtk_text_buffer_insert (buf, &cur, "\n", 1);
