From 92249047ce613ab39a770282efca755bbe36d02d Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Sun, 19 Nov 2023 15:46:52 -0800 Subject: [PATCH] Fixing Input selection to the left of the input --- src/widgets/input.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/input.rs b/src/widgets/input.rs index d19f2b4..a60d39f 100644 --- a/src/widgets/input.rs +++ b/src/widgets/input.rs @@ -686,6 +686,9 @@ where if location.y < 0 { location.y = Px::ZERO; } + if location.x < 0 { + location.x = Px::ZERO; + } let mut closest: Option<(Cursor, i32)> = None; let mut current_line = usize::MAX;