aboutsummaryrefslogtreecommitdiff
path: root/editor/code_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-04-26 19:31:36 +0200
committerGitHub2017-04-26 19:31:36 +0200
commit5993a5fac9a108297fc7909d1a38abac471d037d (patch)
treed6f83c45eeb68063d6d85eb9e7fae0d5914242e7 /editor/code_editor.cpp
parent4759be3c4bcd0964480a428b17a9680401d6d9b1 (diff)
parentc4ffe892043a558e293c5d3974c14beaabe038c4 (diff)
downloadgodot-5993a5fac9a108297fc7909d1a38abac471d037d.tar.gz
godot-5993a5fac9a108297fc7909d1a38abac471d037d.tar.zst
godot-5993a5fac9a108297fc7909d1a38abac471d037d.zip
Merge pull request #8544 from Paulb23/indent_type_setting
Changed indent type settings
Diffstat (limited to 'editor/code_editor.cpp')
-rw-r--r--editor/code_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index 4ec2a3c39..a84d65de0 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -1071,7 +1071,7 @@ void CodeTextEditor::update_editor_settings() {
text_editor->set_auto_brace_completion(EditorSettings::get_singleton()->get("text_editor/completion/auto_brace_complete"));
text_editor->set_scroll_pass_end_of_file(EditorSettings::get_singleton()->get("text_editor/cursor/scroll_past_end_of_file"));
- text_editor->set_indent_using_spaces(EditorSettings::get_singleton()->get("text_editor/indent/type") == "Tabs" ? 0 : 1);
+ text_editor->set_indent_using_spaces(EditorSettings::get_singleton()->get("text_editor/indent/type"));
text_editor->set_indent_size(EditorSettings::get_singleton()->get("text_editor/indent/size"));
text_editor->set_draw_tabs(EditorSettings::get_singleton()->get("text_editor/indent/draw_tabs"));
text_editor->set_show_line_numbers(EditorSettings::get_singleton()->get("text_editor/line_numbers/show_line_numbers"));