From 40240942170321b6e4e3df4109a347585bba2638 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 5 Jun 2007 11:01:36 +0000 Subject: [PATCH] (preedit_insert): Print debug information. --- src/input.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; } -- 1.7.10.4