Issue #24266: Merge readline Ctrl+C handling from 3.5
This commit is contained in:
commit
0b2d71bc70
|
@ -232,6 +232,9 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #24266: Ctrl+C during Readline history search now cancels the search
|
||||
mode when compiled with Readline 7.
|
||||
|
||||
- Issue #26590: Implement a safe finalizer for the _socket.socket type. It now
|
||||
releases the GIL to close the socket.
|
||||
|
||||
|
|
|
@ -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…
Reference in New Issue