summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2019-05-16 22:32:06 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2019-05-16 22:32:06 +0100
commita8a0392c12d8a27f8c0f376f67abf7d3a06987df (patch)
tree94e0cd081fbb6d5dec4f9b9b8f0f4ea870698724 /scene/gui
parent2522a432568faa32974a27ca81ead5d8aa3975ce (diff)
Fix text_edit drawing incorrect chars when syntax highlighting enabled
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 10bd9e2a8b..86b99b3c6d 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;