From ec4d2b26ecb9c7aaba4941b00b8022cf03ebc380 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Sat, 24 Aug 2019 15:21:45 +0100 Subject: [PATCH] Fixed syntax highlighting cache not clearing final line --- scene/gui/text_edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 1bd23cd1328..fee5b753344 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -3991,7 +3991,7 @@ void TextEdit::_line_edited_from(int p_line) { if (syntax_highlighting_cache.size() > 0) { cache_size = syntax_highlighting_cache.back()->key(); - for (int i = p_line - 1; i < cache_size; i++) { + for (int i = p_line - 1; i <= cache_size; i++) { if (syntax_highlighting_cache.has(i)) { syntax_highlighting_cache.erase(i); }