codetools: code completion: update method body to definition: beautify

git-svn-id: trunk@34965 -
This commit is contained in:
mattias 2012-01-26 22:46:24 +00:00
parent 9b706b641d
commit a6d962b329

View File

@ -2380,7 +2380,8 @@ begin
FromPos:=DefProcNode.StartPos;
EndPos:=DefProcNode.EndPos;
SourceChangeCache.MainScanner:=Scanner;
SourceChangeCache.BeautifyCodeOptions.BeautifyProc(NewProcCode,Indent,false);
NewProcCode:=SourceChangeCache.BeautifyCodeOptions.BeautifyStatement(
NewProcCode,Indent,[bcfDoNotIndentFirstLine]);
{$IFDEF VerboseCompleteMethod}
debugln('TCodeCompletionCodeTool.CompleteMethodByBody final NewProcCode:');
debugln(NewProcCode);