Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d6990d22
Commit
d6990d22
authored
Mar 22, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #24266: Cancel history search mode with Ctrl+C in Readline 7
parent
e46487b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Misc/NEWS
Misc/NEWS
+3
-0
Modules/readline.c
Modules/readline.c
+3
-0
No files found.
Misc/NEWS
View file @
d6990d22
...
@@ -94,6 +94,9 @@ Core and Builtins
...
@@ -94,6 +94,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #24266: Ctrl+C during Readline history search now cancels the search
mode when compiled with Readline 7.
- Issue #26560: Avoid potential ValueError in BaseHandler.start_response.
- Issue #26560: Avoid potential ValueError in BaseHandler.start_response.
Initial patch by Peter Inglesby.
Initial patch by Peter Inglesby.
...
...
Modules/readline.c
View file @
d6990d22
...
@@ -1140,6 +1140,9 @@ readline_until_enter_or_signal(const char *prompt, int *signal)
...
@@ -1140,6 +1140,9 @@ readline_until_enter_or_signal(const char *prompt, int *signal)
#endif
#endif
if
(
s
<
0
)
{
if
(
s
<
0
)
{
rl_free_line_state
();
rl_free_line_state
();
#if defined(RL_READLINE_VERSION) && RL_READLINE_VERSION >= 0x0700
rl_callback_sigcleanup
();
#endif
rl_cleanup_after_signal
();
rl_cleanup_after_signal
();
rl_callback_handler_remove
();
rl_callback_handler_remove
();
*
signal
=
1
;
*
signal
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment