diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-15 00:05:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 00:05:59 +0200 |
commit | 5da885e1f7872477acbdd389dd96dd68e327d4c2 (patch) | |
tree | 5e8d06657e3ef4d9c0abf7b3dde2c26e2cb902a8 | |
parent | 88e671e0b70293f30cf983e48837ebc85e2d5afc (diff) | |
parent | a1db7088edc5379e0bec53027320d05e111e0dd4 (diff) |
Merge pull request #49582 from timothyqiu/codeedit-update-cache
Update cache after clearing delimiters in CodeEdit
-rw-r--r-- | scene/gui/code_edit.cpp | 3 |
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 { |