Merge pull request #67393 from KoBeWi/🥕

Preserve caret when updating EditorPropertyText
This commit is contained in:
Rémi Verschelde 2022-10-15 12:55:41 +02:00
commit 03adb08b10

View File

@ -90,7 +90,9 @@ void EditorPropertyText::update_property() {
String s = get_edited_object()->get(get_edited_property());
updating = true;
if (text->get_text() != s) {
int caret = text->get_caret_column();
text->set_text(s);
text->set_caret_column(caret);
}
text->set_editable(!is_read_only());
updating = false;