mirror of
https://github.com/python/cpython.git
synced 2025-10-30 13:11:29 +00:00
[3.13] gh-120041: Do not use append_to_screen when completions are visible (GH-120042) (#120051)
* gh-120041: Do not use append_to_screen when completions are visible (GH-120042) (cherry picked from commit8fc7653766) * gh-120041: Refactor check for visible completion menu in completing_reader (GH-120055) (cherry picked from commitbf8e5e53d0) --------- Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
This commit is contained in:
parent
2acbdc23ad
commit
8d74eae4d4
3 changed files with 52 additions and 10 deletions
|
|
@ -39,7 +39,7 @@ def code_to_events(code: str):
|
|||
|
||||
|
||||
def prepare_reader(console: Console, **kwargs):
|
||||
config = ReadlineConfig(readline_completer=None)
|
||||
config = ReadlineConfig(readline_completer=kwargs.pop("readline_completer", None))
|
||||
reader = ReadlineAlikeReader(console=console, config=config)
|
||||
reader.more_lines = partial(more_lines, namespace=None)
|
||||
reader.paste_mode = True # Avoid extra indents
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue