mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Issue #24266: Merge readline Ctrl+C handling from 3.5
This commit is contained in:
commit
0b2d71bc70
2 changed files with 6 additions and 0 deletions
|
@ -1138,6 +1138,9 @@ readline_until_enter_or_signal(const char *prompt, int *signal)
|
|||
#endif
|
||||
if (s < 0) {
|
||||
rl_free_line_state();
|
||||
#if defined(RL_READLINE_VERSION) && RL_READLINE_VERSION >= 0x0700
|
||||
rl_callback_sigcleanup();
|
||||
#endif
|
||||
rl_cleanup_after_signal();
|
||||
rl_callback_handler_remove();
|
||||
*signal = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue