diff --git a/components/codetools/ide/codyidentifiersdlg.pas b/components/codetools/ide/codyidentifiersdlg.pas index 69f524a215..40ae3fc525 100644 --- a/components/codetools/ide/codyidentifiersdlg.pas +++ b/components/codetools/ide/codyidentifiersdlg.pas @@ -1131,7 +1131,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; @@ -1186,7 +1186,7 @@ var end; if FileExistsCached(Item.DUnit.Filename) then begin inc(Found); - if Found