Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e079935 commit bf8e5e5Copy full SHA for bf8e5e5
2 files changed
Lib/_pyrepl/commands.py
@@ -365,12 +365,7 @@ def do(self) -> None:
365
r = self.reader
366
text = self.event * r.get_arg()
367
r.insert(text)
368
- if (
369
- len(text) == 1 and
370
- r.pos == len(r.buffer) and
371
- not r.cmpltn_menu_visible and # type: ignore[attr-defined]
372
- not r.cmpltn_message_visible # type: ignore[attr-defined]
373
- ):
+ if len(text) == 1 and r.pos == len(r.buffer):
374
r.calc_screen = r.append_to_screen
375
376
Lib/_pyrepl/completing_reader.py
@@ -210,6 +210,9 @@ def do(self) -> None:
210
211
commands.self_insert.do(self)
212
213
+ if r.cmpltn_menu_visible or r.cmpltn_message_visible:
214
+ r.calc_screen = r.calc_complete_screen
215
+
216
if r.cmpltn_menu_visible:
217
stem = r.get_stem()
218
if len(stem) < 1:
0 commit comments