We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec5e90 commit 335d542Copy full SHA for 335d542
core/src/display_object/edit_text.rs
@@ -902,10 +902,11 @@ impl<'gc> EditText<'gc> {
902
903
let caret = if let LayoutContent::Text { start, end, .. } = &lbox.content() {
904
if let Some(visible_selection) = visible_selection {
905
+ let text_len = edit_text.text_spans.text().len();
906
if visible_selection.is_caret()
907
&& !edit_text.flags.contains(EditTextFlag::READ_ONLY)
908
&& visible_selection.start() >= *start
- && visible_selection.end() <= *end
909
+ && (visible_selection.end() < *end || *end == text_len)
910
&& !visible_selection.blinks_now()
911
{
912
Some(visible_selection.start() - start)
0 commit comments