Skip to content

Commit 4474bbf

Browse files
committed
fix(app): restore prompt correctly when inline app exits
Following the fix for garbled inline app outputs in d7e9168, update the other terminal cursor move accordingly to correctly restore the prompt.
1 parent c07054a commit 4474bbf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/textual/app.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3305,9 +3305,7 @@ async def invoke_ready_callback() -> None:
33053305
console.print()
33063306
else:
33073307
self._driver.write(
3308-
Control.move(
3309-
-cursor_x, -self.INLINE_PADDING - 1
3310-
).segment.text
3308+
Control.move(0, -self.INLINE_PADDING).segment.text
33113309
)
33123310

33133311
driver.stop_application_mode()

0 commit comments

Comments
 (0)