From a8a0392c12d8a27f8c0f376f67abf7d3a06987df Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Thu, 16 May 2019 22:32:06 +0100 Subject: [PATCH] Fix text_edit drawing incorrect chars when syntax highlighting enabled --- scene/gui/text_edit.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 10bd9e2a8bf..86b99b3c6d6 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1072,10 +1072,7 @@ void TextEdit::_notification(int p_what) { } if ((char_ofs + char_margin + char_w) >= xmargin_end) { - if (syntax_coloring) - continue; - else - break; + break; } bool in_search_result = false;