diff --git a/components/codetools/finddeclarationtool.pas b/components/codetools/finddeclarationtool.pas index 68e80468fc..0f95f6ec6e 100644 --- a/components/codetools/finddeclarationtool.pas +++ b/components/codetools/finddeclarationtool.pas @@ -5233,6 +5233,8 @@ begin Result:=InNodeIdentifier(CurPos.StartPos); end; + ctnUnit: + Result:=PositionInSourceName(CleanPos); end; end;