diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-05-07 11:49:34 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-07 11:49:34 -0300 |
commit | 6e9517ca838ee01444614cdc9e6899c2555a172e (patch) | |
tree | 689938d966e3927d92154df25c7eb304b16fcaef | |
parent | d4cdee5f9e4d39493e3f28ab229935a143a52015 (diff) | |
parent | 0c1a71b0471d30138db00f9a50d3bf4157523586 (diff) |
Merge pull request #18642 from flashyincceo/engine-click
Fix script editor CTRL+CLICK on singleton functions
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 0114dfc63b..45f5e667fa 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: { |