mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-120041: Do not use append_to_screen when completions are visible (GH-120042)
This commit is contained in:
parent
4dcd91ceaf
commit
8fc7653766
4 changed files with 55 additions and 11 deletions
|
@ -365,7 +365,12 @@ class self_insert(EditCommand):
|
|||
r = self.reader
|
||||
text = self.event * r.get_arg()
|
||||
r.insert(text)
|
||||
if len(text) == 1 and r.pos == len(r.buffer):
|
||||
if (
|
||||
len(text) == 1 and
|
||||
r.pos == len(r.buffer) and
|
||||
not r.cmpltn_menu_visible and # type: ignore[attr-defined]
|
||||
not r.cmpltn_message_visible # type: ignore[attr-defined]
|
||||
):
|
||||
r.calc_screen = r.append_to_screen
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue