mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-24 20:30:49 +01:00
SynEdit: Fixed updating gutter (Show every nth line number would not follow caret movement), broken in revision 18650 #720657de54
git-svn-id: trunk@18685 -
This commit is contained in:
parent
1065ec037f
commit
212692fab4
@ -3599,8 +3599,6 @@ end;
|
||||
|
||||
procedure TCustomSynEdit.CaretChanged(Sender: TObject);
|
||||
begin
|
||||
IncPaintLock;
|
||||
try
|
||||
Include(fStateFlags, sfCaretChanged);
|
||||
if FCaret.OldCharPos <> FCaret.CharPos then
|
||||
Include(fStatusChanges, scCaretX);
|
||||
@ -3611,9 +3609,8 @@ begin
|
||||
end;
|
||||
EnsureCursorPosVisible;
|
||||
FMarkupManager.Caret := FCaret.LineCharPos;
|
||||
finally
|
||||
DecPaintLock;
|
||||
end;
|
||||
if fPaintLock = 0 then
|
||||
fMarkupHighCaret.CheckState; // Todo need a global lock, including the markup
|
||||
end;
|
||||
|
||||
procedure TCustomSynEdit.SetLeftChar(Value: Integer);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user