summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-04-24 16:48:48 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-04-24 16:48:48 +0200
commit9098698d17c85601fd8f807ddd29d6a6d9db2f4a (patch)
tree8a81f66197975c663002328da7b4d0da191af741
parent60a335b24b0fad5b4b208a602c09e6b1d34e833a (diff)
parent23d6225c1e59f33cc6cfe0df3a00961c0c93155f (diff)
downloadredot-engine-9098698d17c85601fd8f807ddd29d6a6d9db2f4a.tar.gz
Merge pull request #76396 from Rindbee/fix_line_spacing_not_update_in_code_editor
Fix `line_spacing` in code editor will not take effect immediately on change
-rw-r--r--editor/code_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index 10c173ffe8..61df3a977a 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -1049,6 +1049,7 @@ void CodeTextEditor::update_editor_settings() {
// Appearance: Whitespace
text_editor->set_draw_tabs(EDITOR_GET("text_editor/appearance/whitespace/draw_tabs"));
text_editor->set_draw_spaces(EDITOR_GET("text_editor/appearance/whitespace/draw_spaces"));
+ text_editor->add_theme_constant_override("line_spacing", EDITOR_GET("text_editor/appearance/whitespace/line_spacing"));
// Behavior: Navigation
text_editor->set_scroll_past_end_of_file_enabled(EDITOR_GET("text_editor/behavior/navigation/scroll_past_end_of_file"));