Skip to content

Commit

Permalink
fix error in inline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Aug 17, 2024
1 parent a596640 commit 8c01ef7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8c01ef7

Please sign in to comment.