mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-03 17:17:39 +02:00
Cody/Dictionary: Corrected the exact number of items displayed
This commit is contained in:
parent
5e16f81833
commit
58dece93f7
@ -1139,7 +1139,7 @@ var
|
||||
if IdentifierPos(FilterP,PChar(Pointer(Item.Name)))<0 then continue;
|
||||
end;
|
||||
end;
|
||||
if Found>MaxItems then begin
|
||||
if Found>MaxItems+1 then begin
|
||||
inc(Found); // only count, do not check
|
||||
continue;
|
||||
end;
|
||||
@ -1194,7 +1194,7 @@ var
|
||||
end;
|
||||
if FileExistsCached(Item.DUnit.Filename) then begin
|
||||
inc(Found);
|
||||
if Found<MaxItems then begin
|
||||
if Found<=MaxItems then begin
|
||||
FItems.Add(TCodyIdentifier.Create(Item.Name,
|
||||
Item.DUnit.Name,Item.DUnit.Filename,
|
||||
Group.Name,Group.Filename,AddExactMatches));
|
||||
|
Loading…
Reference in New Issue
Block a user