Merge pull request #49582 from timothyqiu/codeedit-update-cache

Update cache after clearing delimiters in CodeEdit
This commit is contained in:
Rémi Verschelde 2021-06-15 00:05:59 +02:00 committed by GitHub
commit 5da885e1f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1526,6 +1526,9 @@ void CodeEdit::_clear_delimiters(DelimiterType p_type) {
}
}
delimiter_cache.clear();
if (!setting_delimiters) {
_update_delimiter_cache();
}
}
TypedArray<String> CodeEdit::_get_delimiters(DelimiterType p_type) const {