There was an error while loading. Please reload this page.
1 parent 129cff5 commit 7f0541bCopy full SHA for 7f0541b
prompt_toolkit/application/application.py
@@ -736,6 +736,13 @@ def flush_input() -> None:
736
async def _run_async2() -> _AppResult:
737
self._is_running = True
738
739
+ # Make sure to set `_invalidated` to `False` to begin with,
740
+ # otherwise we're not going to paint anything. This can happen if
741
+ # this application had run before on a different event loop, and a
742
+ # paint was scheduled using `call_soon_threadsafe` with
743
+ # `max_postpone_time`.
744
+ self._invalidated = False
745
+
746
loop = get_event_loop()
747
if set_exception_handler:
748
previous_exc_handler = loop.get_exception_handler()
0 commit comments