From: handa Date: Wed, 17 Aug 2005 12:17:21 +0000 (+0000) Subject: (shift_state): Don't reset ic_info->vars. X-Git-Tag: REL-1-3-0~280 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b29c2be9bc7b339f2d62c0add0f488b55f7126b;p=m17n%2Fm17n-lib.git (shift_state): Don't reset ic_info->vars. (take_action_list): Call MDEBUG_PRINT fore calling take_action_list. --- diff --git a/src/input.c b/src/input.c index 6172a12..a5f02ca 100644 --- a/src/input.c +++ b/src/input.c @@ -1,5 +1,5 @@ /* input.c -- input method module. - Copyright (C) 2003, 2004 + Copyright (C) 2003, 2004, 2005 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number H15PRO112 @@ -852,8 +852,6 @@ shift_state (MInputContext *ic, MSymbol state_name) ic->preedit_changed = ic->candidates_changed = 1; MPLIST_DO (p, ic_info->markers) MPLIST_VAL (p) = 0; - MPLIST_DO (p, ic_info->vars) - MPLIST_VAL (p) = 0; ic->cursor_pos = 0; memmove (ic_info->keys, ic_info->keys + ic_info->state_key_head, sizeof (int) * (ic_info->used - ic_info->state_key_head)); @@ -1335,12 +1333,20 @@ take_action_list (MInputContext *ic, MPlist *action_list) actions2 = NULL; else actions2 = MPLIST_PLIST (args); + MDEBUG_PRINT2 ("(%d,%d)", val1, val2); if (name == Mequal ? val1 == val2 : name == Mless ? val1 < val2 : val1 > val2) - ret = take_action_list (ic, actions1); - else if (actions2) - ret = take_action_list (ic, actions2); + { + MDEBUG_PRINT ("ok"); + ret = take_action_list (ic, actions1); + } + else + { + MDEBUG_PRINT ("no"); + if (actions2) + ret = take_action_list (ic, actions2); + } if (ret < 0) return ret; }