Skip to content

Commit

Permalink
Don't cancel autocomplete when a digit is added, but also don't start…
Browse files Browse the repository at this point in the history
… it. Allows autocompletion of 'Extract7ZipArchive'.
  • Loading branch information
martijnlaan committed Dec 28, 2024
1 parent 4faa3c9 commit 4786a09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Projects/Src/IDE.MainForm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4786a09

Please sign in to comment.