From 8a09562b12d85d3bb7358354608a1be8e13498d8 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Fri, 6 Dec 2024 17:05:11 +0000 Subject: [PATCH] no need to sort --- src/textual/widgets/_input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/widgets/_input.py b/src/textual/widgets/_input.py index a6e25d70e1..dd8d0aac13 100644 --- a/src/textual/widgets/_input.py +++ b/src/textual/widgets/_input.py @@ -1009,5 +1009,5 @@ def action_copy(self) -> None: def action_paste(self) -> None: """Paste from the local clipboard.""" clipboard = self.app._clipboard - start, end = sorted(self.selection) + start, end = self.selection self.replace(clipboard, start, end)