mirror of
https://github.com/python/cpython.git
synced 2025-11-03 07:01:21 +00:00
gh-134869: Fix Ctrl+C corrupts REPL autocomplete (#134929)
This commit is contained in:
parent
5292fc00f2
commit
8750e5ecfc
2 changed files with 2 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ def maybe_run_command(statement: str) -> bool:
|
|||
input_n += 1
|
||||
except KeyboardInterrupt:
|
||||
r = _get_reader()
|
||||
r.cmpltn_reset()
|
||||
if r.input_trans is r.isearch_trans:
|
||||
r.do_cmd(("isearch-end", [""]))
|
||||
r.pos = len(r.get_unicode())
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Fix an issue where pressing Ctrl+C during tab completion in the REPL would leave the autocompletion menu in a corrupted state.
|
||||
Loading…
Add table
Add a link
Reference in a new issue