mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 14:36:09 +02:00
IDE: completion box: fixed cancel execution on error
git-svn-id: trunk@22057 -
This commit is contained in:
parent
df7648cf43
commit
bf25b88f22
@ -4124,11 +4124,15 @@ Begin
|
||||
{$ENDIF}
|
||||
CurCompletionControl := Sender as TSynCompletion;
|
||||
S := TStringList.Create;
|
||||
try
|
||||
Prefix := CurCompletionControl.CurrentString;
|
||||
CurEdit:=GetActiveSE.EditorComponent;
|
||||
case CurrentCompletionType of
|
||||
ctIdentCompletion:
|
||||
if not InitIdentCompletion(S) then exit;
|
||||
if not InitIdentCompletion(S) then begin
|
||||
CurCompletionControl.ItemList.Clear;
|
||||
exit;
|
||||
end;
|
||||
|
||||
ctWordCompletion:
|
||||
begin
|
||||
@ -4152,7 +4156,9 @@ Begin
|
||||
end;
|
||||
|
||||
CurCompletionControl.ItemList := S;
|
||||
finally
|
||||
S.Free;
|
||||
end;
|
||||
CurCompletionControl.CurrentString:=Prefix;
|
||||
// set colors
|
||||
if (CurEdit<>nil) and (CurCompletionControl.TheForm<>nil) then begin
|
||||
|
Loading…
Reference in New Issue
Block a user