diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 41b4201f4b5..7462970d8af 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -739,6 +739,10 @@ void ScriptTextEditor::_lookup_symbol(const String &p_symbol, int p_row, int p_c _goto_line(p_row); + if (result.class_name.begins_with("_")) { + result.class_name = result.class_name.substr(1, result.class_name.length() - 1); + } + switch (result.type) { case ScriptLanguage::LookupResult::RESULT_SCRIPT_LOCATION: {