From a1db7088edc5379e0bec53027320d05e111e0dd4 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 14 Jun 2021 11:30:55 +0800 Subject: Update cache after clearing delimiters in CodeEdit --- scene/gui/code_edit.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scene/gui') diff --git a/scene/gui/code_edit.cpp b/scene/gui/code_edit.cpp index d5000e88d7..48e327ce78 100644 --- a/scene/gui/code_edit.cpp +++ b/scene/gui/code_edit.cpp @@ -1526,6 +1526,9 @@ void CodeEdit::_clear_delimiters(DelimiterType p_type) { } } delimiter_cache.clear(); + if (!setting_delimiters) { + _update_delimiter_cache(); + } } TypedArray CodeEdit::_get_delimiters(DelimiterType p_type) const { -- cgit v1.2.3