gh-134869: Fix Ctrl+C corrupts REPL autocomplete (#134929)
This commit is contained in:
@@ -158,6 +158,7 @@ def run_multiline_interactive_console(
|
||||
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.
|
||||
Reference in New Issue
Block a user