From 6a55338b121972bcccdeafb8e7f119366103ea09 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 7 Aug 2025 21:20:05 +0200 Subject: [PATCH] Entry: update selection caret when changing masked state --- src/gui/Entry.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/Entry.cpp b/src/gui/Entry.cpp index 749c7e0..ce763bd 100644 --- a/src/gui/Entry.cpp +++ b/src/gui/Entry.cpp @@ -350,6 +350,7 @@ namespace gsr { mgl::Text32 &active_text = masked ? masked_text : text; caret.offset_x = active_text.find_character_pos(caret.index).x - active_text.get_position().x; + selection_start_caret.offset_x = active_text.find_character_pos(selection_start_caret.index).x - active_text.get_position().x; } bool Entry::is_masked() const {