diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2017-08-19 09:55:42 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2017-08-19 09:55:42 +0100 |
commit | fb0e7f8f1ce68a725aa0ab716f5c004ffd72835e (patch) | |
tree | b2299e6dc42cbd0fa88b87e2c153690170c624a9 /scene/gui | |
parent | 81dde2687f2f80f5f365a02d68913322d35e9be1 (diff) |
Fixed blinking text, issue 10432
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index a7c31361e8..292ae1a071 100644 --- a/scene/gui/text_edit.cpp +++ b/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) { |