Browse Source

Fix script editor CTRL+CLICK on singleton functions

Peter Folkins 7 years ago
parent
commit
0c1a71b047
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/plugins/script_text_editor.cpp

+ 2 - 0
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);
 		_goto_line(p_row);
 
 
+		result.class_name = result.class_name.trim_prefix("_");
+
 		switch (result.type) {
 		switch (result.type) {
 			case ScriptLanguage::LookupResult::RESULT_SCRIPT_LOCATION: {
 			case ScriptLanguage::LookupResult::RESULT_SCRIPT_LOCATION: {