--- gtksourceview-1.0.1-orig/gtksourceview/gtksourceview.c	2005-01-15 20:51:00.702562000 +0900
+++ gtksourceview-1.0.1/gtksourceview/gtksourceview.c	2005-01-16 18:04:32.660381000 +0900
@@ -1710,6 +1710,13 @@ key_press_cb (GtkWidget *widget, GdkEven
 
 		if (indent != NULL)
 		{
+			/* If the preedit area is open, the following function
+			 * commits preedit area. So we just return %TRUE.
+			 * if the area is closed, we should start a next line.
+			 */
+			if (gtk_im_context_filter_keypress (GTK_TEXT_VIEW(view)->im_context, event))
+				return TRUE;
+
 			/* Insert new line and auto-indent. */
 			gtk_text_buffer_begin_user_action (buf);
 			gtk_text_buffer_insert (buf, &cur, "\n", 1);
