From 8c01ef71f7e8fa0c29e0cc0ed169e55a36819a86 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 17 Aug 2024 21:29:57 +0100 Subject: [PATCH] fix error in inline mode --- src/textual/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/textual/app.py b/src/textual/app.py index 6bb0fbe827..90f9a12eac 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -2615,10 +2615,10 @@ async def invoke_ready_callback() -> None: self._driver.write( Control.move(-cursor_x, -cursor_y + 1).segment.text ) - if inline_no_clear: - console = Console() - console.print(self.screen._compositor) - console.print() + if inline_no_clear and not not self.app._exit_renderables: + console = Console() + console.print(self.screen._compositor) + console.print() driver.stop_application_mode() except Exception as error: