(take_action_list): Fix debug info.
authorhanda <handa>
Fri, 23 May 2008 11:36:18 +0000 (11:36 +0000)
committerhanda <handa>
Fri, 23 May 2008 11:36:18 +0000 (11:36 +0000)
src/input.c

index 38883a8..87281d6 100644 (file)
@@ -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)