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;