mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 17:49:28 +02:00
IDE: codeexplorer: fixed finding the smallest node for the current cursor, bug #20967
git-svn-id: trunk@34427 -
This commit is contained in:
parent
abcae707c6
commit
180515f92a
@ -2377,7 +2377,7 @@ var
|
||||
if (Best<>nil) then begin
|
||||
if (BestEndPos=CleanPos) and (NodeData.EndPos>CleanPos) then begin
|
||||
// for example a,|b then b is better
|
||||
end else if BestEndPos-BestStartPos<NodeData.EndPos-NodeData.StartPos then begin
|
||||
end else if BestEndPos-BestStartPos > NodeData.EndPos-NodeData.StartPos then begin
|
||||
// smaller range is better
|
||||
end else
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user