mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 03:04:31 +00:00
Merge pull request #26809 from KoBeWi/undo_set_text_like_a_boss
Allow to undo TextEdit.set_text
This commit is contained in:
commit
fdea3d48b0
3 changed files with 16 additions and 13 deletions
|
|
@ -376,7 +376,6 @@ void ScriptTextEditor::reload_text() {
|
|||
int v = te->get_v_scroll();
|
||||
|
||||
te->set_text(script->get_source_code());
|
||||
te->clear_undo_history();
|
||||
te->cursor_set_line(row);
|
||||
te->cursor_set_column(column);
|
||||
te->set_h_scroll(h);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue