mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 20:13:50 +02:00
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:
parent
426a0e8392
commit
8f520dbc50
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user