bash.git - bash

index : bash.git
bash
summary refs log tree commit diff
path: root/lib/readline/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline/input.c')
-rw-r--r--lib/readline/input.c 6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/readline/input.c b/lib/readline/input.c
index e6a39e26..d0a32f69 100644
--- a/lib/readline/input.c
+++ b/lib/readline/input.c
@@ -971,11 +971,11 @@ postproc_signal:
call the application's signal event hook. */
if (rl_signal_event_hook)
(*rl_signal_event_hook) ();
-#if defined (READLINE_CALLBACKS)
- else if (osig == SIGINT && (ostate & RL_STATE_CALLBACK) && (ostate & (RL_STATE_ISEARCH|RL_STATE_NSEARCH|RL_STATE_NUMERICARG)))
+ /* If the application's SIGINT handler returns, make sure we abort out of
+ searches and numeric arguments because we've freed necessary state. */
+ if (osig == SIGINT && (ostate & (RL_STATE_ISEARCH|RL_STATE_NSEARCH|RL_STATE_NUMERICARG)))
/* just these cases for now */
_rl_abort_internal ();
-#endif
}
}
generated by cgit v1.2.3 (git 2.46.0) at 2025年12月14日 19:06:06 +0000

AltStyle によって変換されたページ (->オリジナル) /