diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2019-08-24 15:21:45 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2019-08-24 15:21:45 +0100 |
commit | ec4d2b26ecb9c7aaba4941b00b8022cf03ebc380 (patch) | |
tree | fcd37b19d24198869a3d1237937e9f941a9e9f9d | |
parent | b75c2b6d763a37b9fcd900243649cb8bbe91deb8 (diff) |
Fixed syntax highlighting cache not clearing final line
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 1bd23cd132..fee5b75334 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); } |