mirror of https://gitlab.com/basile.b/dexed.git
fix init of string range
This commit is contained in:
parent
32655fd0d1
commit
eeb9502757
|
@ -245,7 +245,7 @@ end;
|
||||||
|
|
||||||
function TCESymbolExpander.expand(const value: string): string;
|
function TCESymbolExpander.expand(const value: string): string;
|
||||||
var
|
var
|
||||||
rng: TStringRange;
|
rng: TStringRange = (ptr:nil; pos:0; len: 0);
|
||||||
sym: string;
|
sym: string;
|
||||||
begin
|
begin
|
||||||
Result := '';
|
Result := '';
|
||||||
|
@ -253,7 +253,7 @@ begin
|
||||||
exit;
|
exit;
|
||||||
//
|
//
|
||||||
updateSymbols;
|
updateSymbols;
|
||||||
rng := TStringRange.create(value);
|
rng.init(value);
|
||||||
while true do
|
while true do
|
||||||
begin
|
begin
|
||||||
if rng.empty then
|
if rng.empty then
|
||||||
|
|
Loading…
Reference in New Issue