? gtkhtml_im.diff
Index: src/gtkhtml.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/gtkhtml.c,v
retrieving revision 1.611
diff -u -r1.611 gtkhtml.c
--- src/gtkhtml.c	11 Sep 2005 04:24:32 -0000	1.611
+++ src/gtkhtml.c	14 Dec 2005 07:31:12 -0000
@@ -3149,6 +3149,8 @@
 	gboolean state = html->priv->im_block_reset;
 	gint pos;
 
+	html->priv->im_block_reset = TRUE;
+
         if (html->priv->im_pre_len > 0) {
                 D_IM (printf ("IM delete last preedit %d + %d\n", html->priv->im_pre_pos, html->priv->im_pre_len);)
                                                                                 
@@ -3165,7 +3167,6 @@
 	if (html->engine->mark && html->engine->mark->position > pos)
 		pos = html->engine->mark->position;
 
-	html->priv->im_block_reset = TRUE;
 	D_IM (printf ("IM commit %s\n", str);)
 	html_engine_paste_text (html->engine, str, -1);
 	html->priv->im_block_reset = state;
