mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 11:10:23 +02:00
ide: find references: fixed order of search results
This commit is contained in:
parent
8726dd48e7
commit
e78469d469
@ -815,10 +815,10 @@ begin
|
|||||||
CurIdentifier:=Refs.NewLocalSrcName;
|
CurIdentifier:=Refs.NewLocalSrcName;
|
||||||
if CurIdentifier='' then CurIdentifier:=Identifier;
|
if CurIdentifier='' then CurIdentifier:=Identifier;
|
||||||
|
|
||||||
ANode:=Tree.FindLowest;
|
ANode:=Tree.FindHighest;
|
||||||
while ANode<>nil do begin
|
while ANode<>nil do begin
|
||||||
CodePos:=PCodeXYPosition(ANode.Data);
|
CodePos:=PCodeXYPosition(ANode.Data);
|
||||||
ANode:=Tree.FindSuccessor(ANode);
|
ANode:=Tree.FindPrecessor(ANode);
|
||||||
|
|
||||||
CurLine:=TrimRight(CodePos^.Code.GetLine(CodePos^.Y-1,false));
|
CurLine:=TrimRight(CodePos^.Code.GetLine(CodePos^.Y-1,false));
|
||||||
TrimmedLine:=Trim(CurLine);
|
TrimmedLine:=Trim(CurLine);
|
||||||
|
Loading…
Reference in New Issue
Block a user