From: handa Date: Wed, 7 Dec 2005 02:36:58 +0000 (+0000) Subject: (take_action_list): If take_action_list return -1, X-Git-Tag: REL-1-3-0~27 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=ac0bb74a6798dae957fdb44ea3b3f0c2da39f39a;p=m17n%2Fm17n-lib.git (take_action_list): If take_action_list return -1, return -1. (handle_key): Likewise. --- diff --git a/src/input.c b/src/input.c index a1a2883..37c014a 100644 --- a/src/input.c +++ b/src/input.c @@ -2296,7 +2296,8 @@ take_action_list (MInputContext *ic, MPlist *action_list) cond = MPLIST_PLIST (args); if (resolve_expression (ic, cond) != 0) { - take_action_list (ic, MPLIST_NEXT (cond)); + if (take_action_list (ic, MPLIST_NEXT (cond)) < 0) + return -1;; break; } } @@ -2463,7 +2464,8 @@ handle_key (MInputContext *ic) if (ic_info->map->branch_actions) { MDEBUG_PRINT (" brank-actions:"); - take_action_list (ic, ic_info->map->branch_actions); + if (take_action_list (ic, ic_info->map->branch_actions) < 0) + return -1; } } }