aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libreadline/misc.c')
-rw-r--r--contrib/libreadline/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/libreadline/misc.c b/contrib/libreadline/misc.c
index 94ecb25900a0..e9c72c50cdb5 100644
--- a/contrib/libreadline/misc.c
+++ b/contrib/libreadline/misc.c
@@ -146,6 +146,8 @@ _rl_arg_dispatch (cxt, c)
rl_restore_prompt ();
rl_clear_message ();
RL_UNSETSTATE(RL_STATE_NUMERICARG);
+ if (key < 0)
+ return -1;
return (_rl_dispatch (key, _rl_keymap));
}
}