mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 23:19:12 +02:00
SynEdit: Wrapped-view, clean up empty nodes
This commit is contained in:
parent
e331c9fb35
commit
a949f2be2e
@ -1149,9 +1149,13 @@ var
|
|||||||
dummy, NextLineOffs, PrevLineOffs, NextLineDist, PrevLineDist, c: Integer;
|
dummy, NextLineOffs, PrevLineOffs, NextLineDist, PrevLineDist, c: Integer;
|
||||||
NextPage, PrevPage: TSynEditLineMapPage;
|
NextPage, PrevPage: TSynEditLineMapPage;
|
||||||
begin
|
begin
|
||||||
if (FSynWordWrapLineMap.FirstInvalidLine < 0) and
|
if (FSynWordWrapLineMap.FirstInvalidLine >= 0) then
|
||||||
(RealCount <= Tree.PageJoinSize)
|
exit;
|
||||||
then begin
|
if (RealCount = 0) and (FSize = 0) then begin
|
||||||
|
Tree.FreeNode(Self);
|
||||||
|
end
|
||||||
|
else
|
||||||
|
if (RealCount <= Tree.PageJoinSize) then begin
|
||||||
NextLineOffs := 0;
|
NextLineOffs := 0;
|
||||||
dummy := 0;
|
dummy := 0;
|
||||||
NextPage := Successor(NextLineOffs, dummy);
|
NextPage := Successor(NextLineOffs, dummy);
|
||||||
|
Loading…
Reference in New Issue
Block a user