summaryrefslogtreecommitdiff
path: root/lib/readline/macro.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline/macro.c')
-rw-r--r--lib/readline/macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/readline/macro.c b/lib/readline/macro.c
index 2975bf1..00cd58d 100644
--- a/lib/readline/macro.c
+++ b/lib/readline/macro.c
@@ -113,7 +113,7 @@ _rl_next_macro_key ()
#if defined (READLINE_CALLBACKS)
c = rl_executing_macro[executing_macro_index++];
- if (RL_ISSTATE (RL_STATE_CALLBACK) && RL_ISSTATE (RL_STATE_READCMD) && rl_executing_macro[executing_macro_index] == 0)
+ if (RL_ISSTATE (RL_STATE_CALLBACK) && RL_ISSTATE (RL_STATE_READCMD|RL_STATE_MOREINPUT) && rl_executing_macro[executing_macro_index] == 0)
_rl_pop_executing_macro ();
return c;
#else