Fix script editor CTRL+CLICK on singleton functions
(cherry picked from commit 0c1a71b047
)
This commit is contained in:
parent
e867befd46
commit
9d006730ad
|
@ -739,6 +739,10 @@ void ScriptTextEditor::_lookup_symbol(const String &p_symbol, int p_row, int p_c
|
||||||
|
|
||||||
_goto_line(p_row);
|
_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) {
|
switch (result.type) {
|
||||||
case ScriptLanguage::LookupResult::RESULT_SCRIPT_LOCATION: {
|
case ScriptLanguage::LookupResult::RESULT_SCRIPT_LOCATION: {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue