aboutsummaryrefslogtreecommitdiff
path: root/editor/code_editor.cpp
diff options
context:
space:
mode:
authorPaulb232017-04-26 12:14:03 +0100
committerPaulb232017-04-26 12:14:03 +0100
commitc4ffe892043a558e293c5d3974c14beaabe038c4 (patch)
tree1d669d25d1788944df336fe036e36c6f97144598 /editor/code_editor.cpp
parent02c041904f7ced28cd2a006c09725fd9fd60520f (diff)
downloadgodot-c4ffe892043a558e293c5d3974c14beaabe038c4.tar.gz
godot-c4ffe892043a558e293c5d3974c14beaabe038c4.tar.zst
godot-c4ffe892043a558e293c5d3974c14beaabe038c4.zip
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"));