diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-04-18 16:57:01 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-04-18 16:57:01 -0300 |
commit | 389d6ca0c7ad6d0609731b279f30df011c6bf40a (patch) | |
tree | 6aac917cb68a10ae31a0155b77a7f93dc5b56141 /scene/gui/text_edit.cpp | |
parent | a5cbfbbcbbc8bc2dabc7ab166c09d116861f3cfd (diff) |
disable undo properly after ctrl-i, fixes #1688
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r-- | scene/gui/text_edit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index fb939d19b7..17f70a7015 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -2586,9 +2586,8 @@ Control::CursorShape TextEdit::get_cursor_shape(const Point2& p_pos) const { void TextEdit::set_text(String p_text){ setting_text=true; - _clear(); _insert_text_at_cursor(p_text); - + clear_undo_history(); cursor.column=0; cursor.line=0; cursor.x_ofs=0; |