diff --git a/src/widgets/input.rs b/src/widgets/input.rs index f888782..e92f86b 100644 --- a/src/widgets/input.rs +++ b/src/widgets/input.rs @@ -872,9 +872,9 @@ where && relative.y <= cache.measured.line_height { return if relative.x > rect.size.width / 2 { - if glyph.info.start + 1 < cache.bytes { + if glyph.info.end < cache.bytes { Cursor { - offset: glyph.info.start + 1, + offset: glyph.info.end, affinity: Affinity::Before, } } else {