Pārlūkot izejas kodu

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 gadu atpakaļ
vecāks
revīzija
0b570e05c7
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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'));
               end else
                 FoundFlagsOrType := False;
-              Break;
+              if FoundSemicolon or FoundFlagsOrType then
+                Break;
             end;
             if (Section = scLangOptions) and (C = '.') and not FoundDot then begin
               { Verify that a word (language name) precedes the '.', then check for