Procházet zdrojové kódy

Fixed blinking text, issue 10432

Paulb23 před 8 roky
rodič
revize
fb0e7f8f1c
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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) {