aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/complete.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libreadline/complete.c')
-rw-r--r--contrib/libreadline/complete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libreadline/complete.c b/contrib/libreadline/complete.c
index 73f834a68a79..5ff198d346a5 100644
--- a/contrib/libreadline/complete.c
+++ b/contrib/libreadline/complete.c
@@ -428,7 +428,7 @@ get_y_or_n (for_pager)
return (1);
if (c == 'n' || c == 'N' || c == RUBOUT)
return (0);
- if (c == ABORT_CHAR)
+ if (c == ABORT_CHAR || c < 0)
_rl_abort_internal ();
if (for_pager && (c == NEWLINE || c == RETURN))
return (2);