From a16b2fc3b6f4995919ac4ad1d60ae8be54fe5e5c Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Sat, 13 May 2023 16:09:35 +0300 Subject: [PATCH] EditorHelp: Fix displaying typed `Array` links --- editor/editor_help.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index dd2ee8c4ced..7d29bd45339 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");