(win_callback): If is ic->candidate_show zero, don't
authorhanda <handa>
Mon, 3 Jul 2006 12:43:47 +0000 (12:43 +0000)
committerhanda <handa>
Mon, 3 Jul 2006 12:43:47 +0000 (12:43 +0000)
push reverse property.

src/input-gui.c

index b1e3ae5..eac22ce 100644 (file)
@@ -310,7 +310,7 @@ win_callback (MInputContext *ic, MSymbol command)
       if (ic->im->language != Mnil)
        mtext_put_prop (ic->preedit, 0, mtext_nchars (ic->preedit), Mlanguage,
                        ic->im->language);
-      if (ic->candidate_list)
+      if (ic->candidate_list && ic->candidate_show)
        mtext_push_prop (ic->preedit, ic->candidate_from, ic->candidate_to,
                         Mface, mface_reverse_video);
       if (mtext_nchars (ic->produced) == 0)