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
This commit is contained in:
Rémi Verschelde 2023-04-24 16:48:48 +02:00
commit 9098698d17
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -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"));