summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-18 09:33:35 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-18 19:22:20 +0200
commit5361ec9f43e454d0869c3ce0984fda34a95472a1 (patch)
treeb50cf7f280c385ea02e05fa1b3850f7acc22a5a6 /editor
parentb5f3ac522e16b2d899604e2d0788a86c66476e78 (diff)
Implement BiDi override mode for GDScript source.
Diffstat (limited to 'editor')
-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 df8adf01e4..644735a4d8 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -2086,6 +2086,7 @@ CodeTextEditor::CodeTextEditor() {
text_editor = memnew(CodeEdit);
add_child(text_editor);
text_editor->set_v_size_flags(SIZE_EXPAND_FILL);
+ text_editor->set_structured_text_bidi_override(TextServer::STRUCTURED_TEXT_GDSCRIPT);
int ot_mode = EDITOR_GET("interface/editor/code_font_contextual_ligatures");
Ref<FontVariation> fc = text_editor->get_theme_font(SNAME("font"));