Browse Source

Merge pull request #28945 from Paulb23/28860_incorrect_characters

Fix text_edit drawing incorrect chars when syntax highlighting enabled
Max Hilbrunner 6 năm trước cách đây
mục cha
commit
a7a954e304
1 tập tin đã thay đổi với 1 bổ sung4 xóa
  1. 1 4
      scene/gui/text_edit.cpp

+ 1 - 4
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;