fix caret getting stuck as visible without focus when the text field pauses blinking while it is without focus

This commit is contained in:
temportalflux
2026-07-11 09:31:07 -04:00
parent 09be9ed98e
commit 5bfb5ef58b
2 changed files with 5 additions and 5 deletions
@@ -1138,8 +1138,8 @@ impl<'app> EditableTextActionHandler<Context<'app, Self>> for EditableTextState
window: &mut Window,
cx: &mut Context<'app, Self>,
) {
let character_pos = self.index_for_pixel_point(text_position, window.line_height());
if self.is_selecting && self.click_count == 1 {
let character_pos = self.index_for_pixel_point(text_position, window.line_height());
self.select_to(character_pos, cx);
}
}