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:
martin 2009-02-14 15:24:57 +00:00
parent 1065ec037f
commit 212692fab4

View File

@ -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);