Fixed syntax highlighting cache not clearing final line

This commit is contained in:
Paulb23 2019-08-24 15:21:45 +01:00
parent b75c2b6d76
commit ec4d2b26ec

View file

@ -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);
}