Browse Source

Fixed blinking text, issue 10432

Paulb23 8 years ago
parent
commit
fb0e7f8f1c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scene/gui/text_edit.cpp

+ 2 - 0
scene/gui/text_edit.cpp

@@ -1000,6 +1000,8 @@ void TextEdit::_notification(int p_what) {
 
 					if (cursor.column == j && cursor.line == line && block_caret && draw_caret && !insert_mode) {
 						color = cache.caret_background_color;
+					} else if (!syntax_coloring && block_caret) {
+						color = cache.font_color;
 					}
 
 					if (str[j] >= 32) {