mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 09:35:59 +02:00
JCF: begin/end update
git-svn-id: trunk@35809 -
This commit is contained in:
parent
68ed23b212
commit
f6c23f9fe9
@ -183,10 +183,12 @@ begin
|
||||
|
||||
SplitIntoChangeSections(lcSourceLines, lcDestLines, lcSameStart, lcSameEnd);
|
||||
try
|
||||
pcUnit.BeginUpdate;
|
||||
pcUnit.BeginUndoBlock;
|
||||
|
||||
liStart := lcSameStart.Count;
|
||||
liIndex := 0;
|
||||
liMaxIndex := Max(lcSourceLines.Count, lcDestLines.Count);
|
||||
pcUnit.BeginUndoBlock;
|
||||
while (liIndex < liMaxIndex) do
|
||||
begin
|
||||
if liIndex < lcSourceLines.Count then
|
||||
@ -205,8 +207,9 @@ begin
|
||||
|
||||
inc(liIndex);
|
||||
end;
|
||||
pcUnit.EndUndoBlock;
|
||||
finally
|
||||
pcUnit.EndUndoBlock;
|
||||
pcUnit.EndUpdate;
|
||||
lcSourceLines.Free;
|
||||
lcDestLines.Free;
|
||||
lcSameStart.Free;
|
||||
|
Loading…
Reference in New Issue
Block a user