From: handa Date: Fri, 23 May 2008 11:36:18 +0000 (+0000) Subject: (take_action_list): Fix debug info. X-Git-Tag: REL-1-5-2~18 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=44ac6b833867d9dd5ba2a8e0a465817d966fed74;p=m17n%2Fm17n-lib.git (take_action_list): Fix debug info. --- diff --git a/src/input.c b/src/input.c index 38883a8..87281d6 100644 --- a/src/input.c +++ b/src/input.c @@ -3113,8 +3113,9 @@ take_action_list (MInputContext *ic, MPlist *action_list) to = 0; else if (to > len) to = len; + pos = to - ic->cursor_pos; } - MDEBUG_PRINT1 ("(%d)", to - ic->cursor_pos); + MDEBUG_PRINT1 ("(%d)", pos); if (to < ic->cursor_pos) preedit_delete (ic, to, ic->cursor_pos); else if (to > ic->cursor_pos)