From 44ac6b833867d9dd5ba2a8e0a465817d966fed74 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 23 May 2008 11:36:18 +0000 Subject: [PATCH] (take_action_list): Fix debug info. --- src/input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 1.7.10.4