mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 03:56:12 +02: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);
|
||||
end;
|
||||
|
||||
// Called with (0, 0) => to invalidate all lines => redraw
|
||||
procedure TCustomSynEdit.LineCountChanged(Sender: TSynEditStrings; AIndex, ACount: Integer);
|
||||
begin
|
||||
ScanFrom(AIndex - 1, Min(AIndex, AIndex + ACount));
|
||||
|
@ -1438,6 +1438,7 @@ end;
|
||||
procedure TSynEditFoldedView.LinesInsertedAtTextIndex(AStartIndex, ALineCount : Integer; SkipFixFolding : Boolean);
|
||||
var top : Integer;
|
||||
begin
|
||||
if ALineCount = 0 then exit;
|
||||
top := TopTextIndex;
|
||||
fFoldTree.AdjustForLinesInserted(AStartIndex+1, ALineCount);
|
||||
if AStartIndex < top then
|
||||
|
@ -969,6 +969,8 @@ begin
|
||||
finally
|
||||
Writer.Free;
|
||||
end;
|
||||
MarkSaved;
|
||||
FLineRangeNotificationList.CallRangeNotifyEvents(self, 0, 0);
|
||||
end;
|
||||
|
||||
{$IFDEF SYN_LAZARUS}
|
||||
|
Loading…
Reference in New Issue
Block a user