File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
RetailCoder.VBE/UI/Command Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -97,16 +97,9 @@ private Declaration FindTarget(object parameter)
97
97
var selection = _vbe . ActiveCodePane . GetSelection ( ) ;
98
98
if ( ! selection . Equals ( default ( QualifiedSelection ) ) )
99
99
{
100
- declaration = _state . AllUserDeclarations
101
- . SingleOrDefault ( item => item . QualifiedName . QualifiedModuleName == selection . QualifiedName
102
- && ( item . QualifiedSelection . Selection . ContainsFirstCharacter ( selection . Selection )
103
- ||
104
- item . References . Any ( reference => reference . Selection . ContainsFirstCharacter ( selection . Selection ) ) ) ) ;
105
- }
106
-
107
- if ( declaration == null )
108
- {
109
- return null ;
100
+ declaration = _state . AllDeclarations
101
+ . SingleOrDefault ( item => item . QualifiedSelection . Selection . ContainsFirstCharacter ( selection . Selection )
102
+ || item . References . Any ( reference => reference . Selection . ContainsFirstCharacter ( selection . Selection ) ) ) ;
110
103
}
111
104
}
112
105
return declaration ;
You can’t perform that action at this time.
0 commit comments