mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Merge 7089258ab1 into f9704f1d84
This commit is contained in:
commit
50e23fb76b
2 changed files with 6 additions and 0 deletions
|
|
@ -160,6 +160,8 @@ def run_multiline_interactive_console(
|
|||
r.cmpltn_reset()
|
||||
if r.input_trans is r.isearch_trans:
|
||||
r.do_cmd(("isearch-end", [""]))
|
||||
if r.cmpltn_menu_choices:
|
||||
r.cmpltn_reset()
|
||||
r.pos = len(r.get_unicode())
|
||||
r.dirty = True
|
||||
r.refresh()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
Previously in the REPL, when a completion list was displayed and KeyboardInterrupt
|
||||
was triggered using Ctrl+C, the completion list would persist and duplicate with
|
||||
each KeyboardInterrupt. Now, when KeyboardInterrupt occurs, the completion list
|
||||
is properly cleared, consistent with the behavior of other errors.
|
||||
Loading…
Add table
Add a link
Reference in a new issue