Fix script editor CTRL+CLICK on singleton functions

(cherry picked from commit 0c1a71b047)
This commit is contained in:
Peter Folkins 2018-05-04 21:04:39 -05:00 committed by Rémi Verschelde
parent e867befd46
commit 9d006730ad
1 changed files with 4 additions and 0 deletions

View File

@ -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: {