From 4786a099810d3bfeab7414e3ce8d5765380047bf Mon Sep 17 00:00:00 2001 From: Martijn Laan <1092369+martijnlaan@users.noreply.github.com> Date: Sat, 28 Dec 2024 18:35:13 +0100 Subject: [PATCH] Don't cancel autocomplete when a digit is added, but also don't start it. Allows autocompletion of 'Extract7ZipArchive'. --- Projects/Src/IDE.MainForm.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projects/Src/IDE.MainForm.pas b/Projects/Src/IDE.MainForm.pas index effb3057..f14edf46 100644 --- a/Projects/Src/IDE.MainForm.pas +++ b/Projects/Src/IDE.MainForm.pas @@ -5574,8 +5574,8 @@ procedure TMainForm.MemoCharAdded(Sender: TObject; Ch: AnsiChar); if DoAutoComplete then begin case Ch of - 'A'..'Z', 'a'..'z', '_', '#', '{', '[', '<': - if not FActiveMemo.AutoCompleteActive and FOptions.AutoAutoComplete then + 'A'..'Z', 'a'..'z', '_', '#', '{', '[', '<', '0'..'9': + if not FActiveMemo.AutoCompleteActive and FOptions.AutoAutoComplete and not (Ch in ['0'..'9']) then InitiateAutoComplete(Ch); else var RestartAutoComplete := (Ch in [' ', '.']) and