mirror of
https://github.com/moparisthebest/Simba
synced 2025-02-16 07:10:10 -05:00
Workaround for a weird "bug".
This commit is contained in:
parent
9e8b0fba13
commit
1f25b99b8a
@ -1032,6 +1032,7 @@ procedure TCodeInsight.Proposal_AddDeclaration(Item: TDeclaration; ItemList, Ins
|
||||
if (d = nil) then
|
||||
Exit;
|
||||
n := d.ShortText;
|
||||
|
||||
s := s + FormatMainName(n);
|
||||
if (Item.Params <> '') then
|
||||
begin
|
||||
|
@ -769,6 +769,12 @@ begin
|
||||
Delete(s, 1, 6);
|
||||
fProcType := GetFirstWord(s);
|
||||
end;
|
||||
|
||||
if (fProcType = '') then
|
||||
if (Items.GetFirstItemOfClass(TciReturnType) <> nil) then
|
||||
fProcType := 'function'
|
||||
else
|
||||
fProcType := 'procedure';
|
||||
end;
|
||||
|
||||
Result := fProcType;
|
||||
|
Loading…
Reference in New Issue
Block a user