From: handa Date: Tue, 5 Jun 2007 11:01:36 +0000 (+0000) Subject: (preedit_insert): Print debug information. X-Git-Tag: FLT-base~20 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=40240942170321b6e4e3df4109a347585bba2638;p=m17n%2Fm17n-lib.git (preedit_insert): Print debug information. --- diff --git a/src/input.c b/src/input.c index 7b9a908..51f86ef 100644 --- a/src/input.c +++ b/src/input.c @@ -2479,9 +2479,15 @@ preedit_insert (MInputContext *ic, int pos, MText *mt, int c) int nchars = mt ? mtext_nchars (mt) : 1; if (mt) - mtext_ins (ic->preedit, pos, mt); + { + mtext_ins (ic->preedit, pos, mt); + MDEBUG_PRINT1 ("(\"%s\")", MTEXT_DATA (mt)); + } else - mtext_ins_char (ic->preedit, pos, c, 1); + { + mtext_ins_char (ic->preedit, pos, c, 1); + MDEBUG_PRINT1 ("('%c')", c); + } adjust_markers (ic, pos, pos, nchars); ic->preedit_changed = 1; }