1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fixed undo when converting indent with no changes, issue 9841

This commit is contained in:
Paulb23
2017-08-10 19:23:45 +01:00
parent 81dde2687f
commit e91bde6521

View File

@@ -355,7 +355,9 @@ void ScriptTextEditor::convert_indent_to_spaces() {
}
j++;
}
tx->set_line(i, line);
if (changed_indentation) {
tx->set_line(i, line);
}
}
if (changed_indentation) {
tx->cursor_set_column(cursor_column);
@@ -409,7 +411,9 @@ void ScriptTextEditor::convert_indent_to_tabs() {
}
j++;
}
tx->set_line(i, line);
if (changed_indentation) {
tx->set_line(i, line);
}
}
if (changed_indentation) {
tx->cursor_set_column(cursor_column);