mirror of
https://github.com/moparisthebest/Simba
synced 2025-02-07 02:30:19 -05:00
Fixed #166
This commit is contained in:
parent
6183f771c9
commit
fb6a8be038
@ -885,6 +885,8 @@ begin
|
||||
end;
|
||||
|
||||
constructor TCodeInsight.Create(FileName: string = '');
|
||||
var
|
||||
StrList : TStringList;
|
||||
begin
|
||||
inherited Create;
|
||||
|
||||
@ -902,8 +904,11 @@ begin
|
||||
fOwnStream := (fFileName <> '');
|
||||
if fOwnStream then
|
||||
begin
|
||||
StrList := TStringList.Create;
|
||||
fMemoryStream := TMemoryStream.Create;
|
||||
fMemoryStream.LoadFromFile(fFileName);
|
||||
StrList.LoadFromFile(filename); //Converts the line-endings.
|
||||
StrList.SaveToStream(fMemoryStream);
|
||||
Strlist.free;
|
||||
end
|
||||
else
|
||||
fMemoryStream := nil;
|
||||
|
Loading…
Reference in New Issue
Block a user