Place caret at 0,0 when setting text not at the end
This commit is contained in:
parent
3bf3a0abaa
commit
aea0761b25
1 changed files with 3 additions and 0 deletions
|
@ -4751,6 +4751,9 @@ void TextEdit::set_text(String p_text) {
|
|||
selection.active = false;
|
||||
}
|
||||
|
||||
cursor_set_line(0);
|
||||
cursor_set_column(0);
|
||||
|
||||
update();
|
||||
setting_text = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue