summaryrefslogtreecommitdiff
path: root/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
authorPeter Folkins <folkins.peter@gmail.com>2018-05-04 21:04:39 -0500
committerPeter Folkins <folkins.peter@gmail.com>2018-05-05 13:23:47 -0500
commit0c1a71b0471d30138db00f9a50d3bf4157523586 (patch)
tree7e94a1f567b92fc32e54d5294511924306a000b2 /editor/plugins/script_text_editor.cpp
parentc9f5288b671ea7dda8a07e9834058438ebe8bbc4 (diff)
Fix script editor CTRL+CLICK on singleton functions
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r--editor/plugins/script_text_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index c872a6f28b..c41032467d 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: {