egui/crates/epaint/src/text
valadaptive 54fded362d
Clamp text cursor positions in the same places where we used to (#7081)
Closes #7077.

This fixes the problem shown in #7077 where clearing a `TextEdit`
wouldn't reset its cursor position. I've fixed that by adding back the
`TextCursorState::range` method, which clamps the selection range to
that of the passed `Galley`, and calling it in the same places where it
was called before #5785.

(/cc @juancampa)

* [x] I have followed the instructions in the PR template
2025-06-16 01:53:00 +02:00
..
cursor.rs Simplify the text cursor API (#5785) 2025-03-20 10:49:38 +01:00
font.rs Update `emoji-icon-font` with fix for fullwidth latin characters (#7067) 2025-05-21 13:22:23 +02:00
fonts.rs Fix `leading_space` sometimes being ignored during paragraph splitting (#7031) 2025-05-08 15:47:13 +02:00
mod.rs Optimize editing long text by caching each paragraph (#5411) 2025-04-01 18:55:39 +02:00
text_layout.rs Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
text_layout_types.rs Clamp text cursor positions in the same places where we used to (#7081) 2025-06-16 01:53:00 +02:00