Ver código fonte

Fix problem introduced by bc04e136 from 2020 (part of version 6.1.1). The problem was that autocomplete would appear when for example an 'S' was typed after 'Source: ' in the [Files] section. The other problem of this commit is not yet fixed: the flags autocompletion still only works for the first flag.

Martijn Laan 1 ano atrás
pai
commit
0b570e05c7
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      Projects/Src/Compil32/CompForm.pas

+ 2 - 1
Projects/Src/Compil32/CompForm.pas

@@ -5001,7 +5001,8 @@ begin
                                     ((Section in [scInstallDelete, scUninstallDelete]) and SameText(ParameterWord, 'Type'));
                                     ((Section in [scInstallDelete, scUninstallDelete]) and SameText(ParameterWord, 'Type'));
               end else
               end else
                 FoundFlagsOrType := False;
                 FoundFlagsOrType := False;
-              Break;
+              if FoundSemicolon or FoundFlagsOrType then
+                Break;
             end;
             end;
             if (Section = scLangOptions) and (C = '.') and not FoundDot then begin
             if (Section = scLangOptions) and (C = '.') and not FoundDot then begin
               { Verify that a word (language name) precedes the '.', then check for
               { Verify that a word (language name) precedes the '.', then check for