r = self.reader
text = self.event * r.get_arg()
r.insert(text)
- 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]
- ):
+ if len(text) == 1 and r.pos == len(r.buffer):
r.calc_screen = r.append_to_screen
commands.self_insert.do(self)
+ if r.cmpltn_menu_visible or r.cmpltn_message_visible:
+ r.calc_screen = r.calc_complete_screen
+
if r.cmpltn_menu_visible:
stem = r.get_stem()
if len(stem) < 1: