[TextEdit] Expose all auto-wrap modes.

This commit is contained in:
bruvzg 2023-03-12 13:21:00 +02:00
parent a3c49ad2f0
commit 75e6ec8874
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
7 changed files with 93 additions and 38 deletions

View file

@ -1035,6 +1035,7 @@ void CodeTextEditor::update_editor_settings() {
text_editor->set_line_folding_enabled(EDITOR_GET("text_editor/appearance/lines/code_folding"));
text_editor->set_draw_fold_gutter(EDITOR_GET("text_editor/appearance/lines/code_folding"));
text_editor->set_line_wrapping_mode((TextEdit::LineWrappingMode)EDITOR_GET("text_editor/appearance/lines/word_wrap").operator int());
text_editor->set_autowrap_mode((TextServer::AutowrapMode)EDITOR_GET("text_editor/appearance/lines/autowrap_mode").operator int());
// Appearance: Whitespace
text_editor->set_draw_tabs(EDITOR_GET("text_editor/appearance/whitespace/draw_tabs"));