SynEdit: Code-Templates, fix AddTemplate. Must parse first, or added tmpl will be overwritten when parse is done

git-svn-id: trunk@62273 -
This commit is contained in:
martin 2019-11-18 22:43:06 +00:00
parent 426a0e8392
commit 8f520dbc50

View File

@ -147,6 +147,9 @@ procedure TCustomSynAutoComplete.AddCompletion(AToken, AValue, AComment: string;
TheAttributes: TStrings);
begin
if AToken <> '' then begin
if not fParsed then
ParseCompletionList;
fCompletions.Add(AToken);
fCompletionComments.Add(AComment);
fCompletionValues.Add(AValue);