diff options
| author | Paulb23 | 2017-08-10 19:23:45 +0100 |
|---|---|---|
| committer | Paulb23 | 2017-08-10 19:23:45 +0100 |
| commit | e91bde652165a0be06c7019ed370ff45525a7170 (patch) | |
| tree | b7366347e6a6be3ee1c7297a2d40659474e64d90 /editor/plugins/script_text_editor.cpp | |
| parent | 81dde2687f2f80f5f365a02d68913322d35e9be1 (diff) | |
| download | godot-e91bde652165a0be06c7019ed370ff45525a7170.tar.gz godot-e91bde652165a0be06c7019ed370ff45525a7170.tar.zst godot-e91bde652165a0be06c7019ed370ff45525a7170.zip | |
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
| -rw-r--r-- | editor/plugins/script_text_editor.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 62fcc4b48..422c65635 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -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); |
