summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-05-13 16:09:35 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-05-13 16:09:35 +0300
commita16b2fc3b6f4995919ac4ad1d60ae8be54fe5e5c (patch)
tree9c02c30f59ad9b073cd246fdb4035edd219662c0
parentc64afeb01731c477813d959daee99a99612d8077 (diff)
downloadredot-engine-a16b2fc3b6f4995919ac4ad1d60ae8be54fe5e5c.tar.gz
EditorHelp: Fix displaying typed `Array` links
-rw-r--r--editor/editor_help.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index dd2ee8c4ce..7d29bd4533 100644
--- a/editor/editor_help.cpp
+++ b/editor/editor_help.cpp
@@ -320,7 +320,8 @@ void EditorHelp::_add_type(const String &p_type, const String &p_enum) {
if (can_ref) {
if (link_t.ends_with("[]")) {
add_array = true;
- link_t = link_t.replace("[]", "");
+ link_t = link_t.trim_suffix("[]");
+ display_t = display_t.trim_suffix("[]");
class_desc->push_meta("#Array"); // class
class_desc->add_text("Array");