mirror of https://gitlab.com/basile.b/dexed.git
dcd, remove ditto supression, now done in server
This commit is contained in:
parent
3ac8171737
commit
bbebbc9686
|
@ -465,6 +465,7 @@ end;
|
||||||
procedure TCEDcdWrapper.getDdocFromCursor(out comment: string);
|
procedure TCEDcdWrapper.getDdocFromCursor(out comment: string);
|
||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
|
len: Integer;
|
||||||
str: string;
|
str: string;
|
||||||
begin
|
begin
|
||||||
if not fAvailable then exit;
|
if not fAvailable then exit;
|
||||||
|
@ -486,10 +487,12 @@ begin
|
||||||
comment := '';
|
comment := '';
|
||||||
fTempLines.LoadFromStream(fClient.Output);
|
fTempLines.LoadFromStream(fClient.Output);
|
||||||
while fClient.Running do ;
|
while fClient.Running do ;
|
||||||
if fTempLines.Count = 0 then
|
len := fTempLines.Count-1;
|
||||||
|
if len = -1 then
|
||||||
updateServerlistening;
|
updateServerlistening;
|
||||||
for str in fTempLines do
|
for i := 0 to len do
|
||||||
begin
|
begin
|
||||||
|
str := fTempLines[i];
|
||||||
with TStringRange.create(str) do while not empty do
|
with TStringRange.create(str) do while not empty do
|
||||||
begin
|
begin
|
||||||
comment += takeUntil('\').yield;
|
comment += takeUntil('\').yield;
|
||||||
|
@ -504,12 +507,9 @@ begin
|
||||||
popFrontN(2);
|
popFrontN(2);
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
|
if i <> len then
|
||||||
comment += LineEnding + LineEnding;
|
comment += LineEnding + LineEnding;
|
||||||
end;
|
end;
|
||||||
//
|
|
||||||
comment := ReplaceText(comment, 'ditto' + LineEnding + LineEnding, '');
|
|
||||||
comment := ReplaceText(comment, 'ditto', '');
|
|
||||||
comment := Trim(comment);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCEDcdWrapper.getDeclFromCursor(out fname: string; out position: Integer);
|
procedure TCEDcdWrapper.getDeclFromCursor(out fname: string; out position: Integer);
|
||||||
|
|
Loading…
Reference in New Issue