Codetools: IdentifierCompletion, apply history limit to filtered list

This commit is contained in:
Martin 2023-07-21 20:51:39 +02:00
parent b9cdb23eed
commit b087b9f55e

View File

@ -742,8 +742,11 @@ begin
( (FFoundHistoryItems[j].Compatibility = HistComp) or (not HasCompSort) ) and ( (FFoundHistoryItems[j].Compatibility = HistComp) or (not HasCompSort) ) and
(FFoundHistoryItems[j].Identifier <> '') (FFoundHistoryItems[j].Identifier <> '')
then begin then begin
HistoryLimits[HistComp] := FFoundHistoryItems[j].HistoryIndex; CurItem := FFoundHistoryItems[j];
dec(TotalHistLimit); if (FilterCurItem >= 0) then begin
HistoryLimits[HistComp] := FFoundHistoryItems[j].HistoryIndex;
dec(TotalHistLimit);
end;
end; end;
end; end;
if not HasCompSort then if not HasCompSort then