mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-22 01:29:28 +01:00
SynEdit, update LineChangeMarkers (yellow/green) for user applications that use SynEdit.Lines.SaveToFile
git-svn-id: trunk@18842 -
This commit is contained in:
parent
bac2b22c0c
commit
0feb94742e
@ -4287,6 +4287,7 @@ begin
|
|||||||
Dec(Result);
|
Dec(Result);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
// Called with (0, 0) => to invalidate all lines => redraw
|
||||||
procedure TCustomSynEdit.LineCountChanged(Sender: TSynEditStrings; AIndex, ACount: Integer);
|
procedure TCustomSynEdit.LineCountChanged(Sender: TSynEditStrings; AIndex, ACount: Integer);
|
||||||
begin
|
begin
|
||||||
ScanFrom(AIndex - 1, Min(AIndex, AIndex + ACount));
|
ScanFrom(AIndex - 1, Min(AIndex, AIndex + ACount));
|
||||||
|
|||||||
@ -1438,6 +1438,7 @@ end;
|
|||||||
procedure TSynEditFoldedView.LinesInsertedAtTextIndex(AStartIndex, ALineCount : Integer; SkipFixFolding : Boolean);
|
procedure TSynEditFoldedView.LinesInsertedAtTextIndex(AStartIndex, ALineCount : Integer; SkipFixFolding : Boolean);
|
||||||
var top : Integer;
|
var top : Integer;
|
||||||
begin
|
begin
|
||||||
|
if ALineCount = 0 then exit;
|
||||||
top := TopTextIndex;
|
top := TopTextIndex;
|
||||||
fFoldTree.AdjustForLinesInserted(AStartIndex+1, ALineCount);
|
fFoldTree.AdjustForLinesInserted(AStartIndex+1, ALineCount);
|
||||||
if AStartIndex < top then
|
if AStartIndex < top then
|
||||||
|
|||||||
@ -969,6 +969,8 @@ begin
|
|||||||
finally
|
finally
|
||||||
Writer.Free;
|
Writer.Free;
|
||||||
end;
|
end;
|
||||||
|
MarkSaved;
|
||||||
|
FLineRangeNotificationList.CallRangeNotifyEvents(self, 0, 0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$IFDEF SYN_LAZARUS}
|
{$IFDEF SYN_LAZARUS}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user