--- xchat-2.0.10_org/src/fe-gtk/fkeys.c 2004-07-02 01:28:43.000000000 +0900 +++ xchat-2.0.10_org/src/fe-gtk/fkeys.c 2004-07-02 18:28:27.574661864 +0900 @@ -1368,9 +1368,12 @@ prefix_len, skip_len = 0, is_nick, is_cmd = 0; char buf[COMP_BUF], ent[CHANLEN], *postfix = NULL, *result, *ch; GList *list = NULL, *tmp_list = NULL; - const char *text = gtk_entry_get_text (GTK_ENTRY (t)); + char *text; GCompletion *gcomp = NULL; + gtk_im_context_reset( GTK_ENTRY(t)->im_context ); + text = gtk_entry_get_text (GTK_ENTRY (t)); + if (text[0] == 0) return 1;