From 9d006730ad852e83d9d73e569c177113069016c3 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 (cherry picked from commit 0c1a71b0471d30138db00f9a50d3bf4157523586) --- editor/plugins/script_text_editor.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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: {