diff --git a/components/codetools/codecompletiontool.pas b/components/codetools/codecompletiontool.pas index c8f6333f87..dafc61388f 100644 --- a/components/codetools/codecompletiontool.pas +++ b/components/codetools/codecompletiontool.pas @@ -6224,10 +6224,8 @@ begin NeedSection:=true; end; if NeedSection then - NewCode:='var'+Beauty.LineEnd - +Beauty.GetIndentStr(Beauty.Indent)+NewCode; - NewCode:=Beauty.BeautifyStatement(NewCode, - Indent,[bcfIndentExistingLineBreaks]); + NewCode:='var'+Beauty.LineEnd+Beauty.GetIndentStr(Beauty.Indent)+NewCode; + NewCode:=Beauty.BeautifyStatement(NewCode,Indent,[bcfIndentExistingLineBreaks]); SourceChangeCache.BeginUpdate; try