We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2bc4c9 commit 1e6f331Copy full SHA for 1e6f331
src/textual/widgets/_text_area.py
@@ -2225,9 +2225,9 @@ def action_paste(self) -> None:
2225
"""Paste from local clipboard."""
2226
if self.read_only:
2227
return
2228
- clipboard = self.app._clipboard
2229
- start, end = self.selection
2230
- self._replace_via_keyboard(clipboard, start, end)
+ clipboard = self.app.clipboard
+ if result := self._replace_via_keyboard(clipboard, *self.selection):
+ self.move_cursor(result.end_location)
2231
2232
def action_delete_to_start_of_line(self) -> None:
2233
"""Deletes from the cursor location to the start of the line."""
0 commit comments