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].Identifier <> '')
then begin
HistoryLimits[HistComp] := FFoundHistoryItems[j].HistoryIndex;
dec(TotalHistLimit);
CurItem := FFoundHistoryItems[j];
if (FilterCurItem >= 0) then begin
HistoryLimits[HistComp] := FFoundHistoryItems[j].HistoryIndex;
dec(TotalHistLimit);
end;
end;
end;
if not HasCompSort then