From 0c1a71b0471d30138db00f9a50d3bf4157523586 Mon Sep 17 00:00:00 2001 From: Peter Folkins Date: Fri, 4 May 2018 21:04:39 -0500 Subject: [PATCH] Fix script editor CTRL+CLICK on singleton functions --- editor/plugins/script_text_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index c872a6f28ba..c41032467d2 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -746,6 +746,8 @@ void ScriptTextEditor::_lookup_symbol(const String &p_symbol, int p_row, int p_c _goto_line(p_row); + result.class_name = result.class_name.trim_prefix("_"); + switch (result.type) { case ScriptLanguage::LookupResult::RESULT_SCRIPT_LOCATION: {