mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 18:22:54 +02:00
codetools: fixed FindDeclaration if cursor beyond scanned code, bug #17639
git-svn-id: trunk@28325 -
This commit is contained in:
parent
3f5a6e0ed2
commit
503cc8dcad
@ -1489,7 +1489,10 @@ begin
|
||||
GetIdentStartEndAtPosition(Src,CleanCursorPos,
|
||||
CurPos.StartPos,CurPos.EndPos);
|
||||
CursorAtIdentifier:=CurPos.StartPos<CurPos.EndPos;
|
||||
IdentifierStart:=@Src[CurPos.StartPos];
|
||||
if CursorAtIdentifier then
|
||||
IdentifierStart:=@Src[CurPos.StartPos]
|
||||
else
|
||||
IdentifierStart:=PChar(Src);
|
||||
end;
|
||||
if CursorAtIdentifier then begin
|
||||
// find declaration of identifier
|
||||
|
Loading…
Reference in New Issue
Block a user