File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,23 @@ constructor TDelphiAIDevCodeCompletionKeyTab.Create;
39
39
procedure TDelphiAIDevCodeCompletionKeyTab.Process (const AContext: IOTAKeyContext);
40
40
var
41
41
i: Integer;
42
+ LTextLine: string;
42
43
begin
43
44
try
44
45
if FVars.Contents.Count > 1 then
45
46
AContext.EditBuffer.EditPosition.Delete(Pred(FVars.Contents.Count));
46
47
47
48
for i := 0 to Pred(FVars.Contents.Count) do
48
49
begin
49
- AContext.EditBuffer.EditPosition.MoveEOL;
50
- AContext.EditBuffer.EditPosition.InsertText(FVars.Contents[i] + sLineBreak);
50
+ LTextLine := FVars.Contents[i].Trim;
51
+
52
+ if FVars.Contents.Count > 1 then
53
+ begin
54
+ AContext.EditBuffer.EditPosition.MoveEOL;
55
+ LTextLine := FVars.Contents[i];
56
+ end ;
57
+
58
+ AContext.EditBuffer.EditPosition.InsertText(LTextLine + sLineBreak);
51
59
end ;
52
60
finally
53
61
FVars.Clear;
Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ TDelphiAIDevTest = class
25
25
property Apelido: string read FApelido write FApelido;
26
26
property Cep: Integer read FCep write FCep;
27
27
procedure Clear ;
28
-
29
28
end ;
30
29
31
30
implementation
32
31
33
32
procedure TDelphiAIDevTest.Clear ;
34
33
begin
34
+
35
35
end ;
36
36
37
37
end .
You can’t perform that action at this time.
0 commit comments