1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

disable undo properly after ctrl-i, fixes #1688

This commit is contained in:
Juan Linietsky
2015-04-18 16:57:01 -03:00
parent a5cbfbbcbb
commit 389d6ca0c7

View File

@@ -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;