From ac0bb74a6798dae957fdb44ea3b3f0c2da39f39a Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 7 Dec 2005 02:36:58 +0000 Subject: [PATCH] (take_action_list): If take_action_list return -1, return -1. (handle_key): Likewise. --- src/input.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } } } -- 1.7.10.4