From 58dece93f717cfa51872df597e1f903b963e0192 Mon Sep 17 00:00:00 2001 From: n7800 <14154601-n7800@users.noreply.gitlab.com> Date: Mon, 23 Jun 2025 15:09:09 +0500 Subject: [PATCH] Cody/Dictionary: Corrected the exact number of items displayed --- components/codetools/ide/codyidentifiersdlg.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/codetools/ide/codyidentifiersdlg.pas b/components/codetools/ide/codyidentifiersdlg.pas index dfb1198bae..dcc4508ffb 100644 --- a/components/codetools/ide/codyidentifiersdlg.pas +++ b/components/codetools/ide/codyidentifiersdlg.pas @@ -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