ソースを参照

Merge pull request #10439 from Paulb23/blinking_text_issue_10432

Fixed blinking text, issue 10432
Rémi Verschelde 8 年 前
コミット
43d91faa2e
1 ファイル変更2 行追加0 行削除
  1. 2 0
      scene/gui/text_edit.cpp

+ 2 - 0
scene/gui/text_edit.cpp

@@ -1028,6 +1028,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) {