SynEdit: Fix compilation with FPC 3.0.4.

git-svn-id: trunk@64645 -
This commit is contained in:
juha 2021-02-21 15:34:09 +00:00
parent 32a3dc8fa6
commit d01c4c6496

View File

@ -424,7 +424,7 @@ var
StartI := Length(CodeTemplateAttributesStartMagic) + 1;
while (StartI <= Length(sComplValue)) and (sComplValue[StartI] in [#10,#13]) do
Inc(StartI);
EndI := Pos(CodeTemplateAttributesEndMagic, sComplValue, StartI);
EndI := PosEx(CodeTemplateAttributesEndMagic, sComplValue, StartI);
if EndI = 0 then
raise Exception.Create('TCustomSynAutoComplete.ParseCompletionList: "'
+ CodeTemplateAttributesEndMagic + '" not found.');