Use pending updates for unicode input kitten

Avoids all possibility of flicker
This commit is contained in:
Kovid Goyal
2021-09-27 11:33:21 +05:30
parent 9cb5f6d9d7
commit b1f4b2d8ed
2 changed files with 11 additions and 0 deletions

View File

@@ -391,6 +391,7 @@ class UnicodeInput(Handler):
text += ' ' * extra
self.print(styled(text, reverse=True))
@Handler.with_pending_update
def draw_screen(self) -> None:
self.write(clear_screen())
self.draw_title_bar()