mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 09:59:20 +02:00
codetools: fixed example
git-svn-id: trunk@56264 -
This commit is contained in:
parent
727f6ba694
commit
070589661a
@ -39,7 +39,7 @@ var
|
|||||||
Code: TCodeBuffer;
|
Code: TCodeBuffer;
|
||||||
X: Integer;
|
X: Integer;
|
||||||
Y: Integer;
|
Y: Integer;
|
||||||
TopLine: Integer;
|
TopLine, BlockTopLine, BlockBottomLine: Integer;
|
||||||
Filename: String;
|
Filename: String;
|
||||||
begin
|
begin
|
||||||
if (ParamCount>=1) and (Paramcount<>3) then begin
|
if (ParamCount>=1) and (Paramcount<>3) then begin
|
||||||
@ -70,7 +70,8 @@ begin
|
|||||||
raise Exception.Create('loading failed '+Filename);
|
raise Exception.Create('loading failed '+Filename);
|
||||||
|
|
||||||
// complete code
|
// complete code
|
||||||
if CodeToolBoss.CompleteCode(Code,X,Y,TopLine,NewCode,NewX,NewY,NewTopLine,false)
|
if CodeToolBoss.CompleteCode(Code,X,Y,TopLine,NewCode,NewX,NewY,NewTopLine,
|
||||||
|
BlockTopLine,BlockBottomLine,false)
|
||||||
then begin
|
then begin
|
||||||
writeln('Code completed: ',NewCode.Filename,' Line=',NewY,' Column=',NewX);
|
writeln('Code completed: ',NewCode.Filename,' Line=',NewY,' Column=',NewX);
|
||||||
writeln(Code.Source);
|
writeln(Code.Source);
|
||||||
|
Loading…
Reference in New Issue
Block a user