summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2021-06-14 11:30:55 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2021-06-14 21:23:01 +0800
commita1db7088edc5379e0bec53027320d05e111e0dd4 (patch)
tree7f40c27fd76396f97e61d57b186570a136aa3195 /scene/gui
parent12e0f10c74e9619262f1edcfdc1840432ada0565 (diff)
Update cache after clearing delimiters in CodeEdit
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/code_edit.cpp3
1 files changed, 3 insertions, 0 deletions
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<String> CodeEdit::_get_delimiters(DelimiterType p_type) const {