Skip to content

Commit d34deeb

Browse files
committed
bk/2024-09-24-2219
1 parent db8d3a0 commit d34deeb

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Src/IDE/NTAEditViewNotifier/DelphiAIDev.IDE.NTAEditViewNotifier.pas

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ procedure TDelphiAIDevIDENTAEditViewNotifier.ClearLinesNotUsed;
136136
if LVars.Module = nil then
137137
Exit;
138138

139+
//**
140+
if LVars.Contents.Count <= 1 then
141+
Exit;
142+
//**
143+
139144
LView := TUtilsOTA.GetIOTAEditView(LVars.Module);
140145
LColCurrent := LView.CursorPos.Col;
141146
LLineCurrent := LView.CursorPos.Line;

Src/KeyboardBinding/DelphiAIDev.KeyboardBinding.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ procedure TDelphiAIDevKeyboardBinding.CodeCompletionSearch(const Context: IOTAKe
107107
TDelphiAIDevCodeCompletionSearch.New.Process(Context);
108108
finally
109109
//BindingResult := TKeyBindingResult.krUnhandled;
110-
BindingResult := TKeyBindingResult.krHandled;
110+
BindingResult := TKeyBindingResult.krNextProc; //krHandled;
111111
end;
112112
end;
113113

@@ -121,7 +121,7 @@ procedure TDelphiAIDevKeyboardBinding.KeyTab(const Context: IOTAKeyContext; KeyC
121121
if TDelphiAIDevCodeCompletionVars.GetInstance.LineIni > 0 then
122122
begin
123123
TDelphiAIDevCodeCompletionKeyTab.New.Process(Context);
124-
BindingResult := TKeyBindingResult.krHandled;
124+
BindingResult := TKeyBindingResult.krNextProc; //krHandled;
125125
end;
126126
end;
127127

Src/Test/DelphiAIDev.Test.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ TDelphiAIDevTest = class
2525
property Apelido: string read FApelido write FApelido;
2626
property Cep: Integer read FCep write FCep;
2727
procedure Clear;
28-
end;
28+
29+
end;
2930

3031
implementation
3132

0 commit comments

Comments
 (0)