diff --git a/ide/fpviews.pas b/ide/fpviews.pas index ec090715f8..130ee601e2 100644 --- a/ide/fpviews.pas +++ b/ide/fpviews.pas @@ -2581,7 +2581,7 @@ begin SetCurPtr(0,DisasLines^.IndexOf(PL)); PL^.SetFlags(lfDebuggerRow); CurL:=PL; - TrackCursor(do_centre); + TrackCursor(do_not_centre); end; GetCurrentLine:=PL; end; diff --git a/ide/weditor.pas b/ide/weditor.pas index 3d2ac9ddbd..9fb9f55aac 100644 --- a/ide/weditor.pas +++ b/ide/weditor.pas @@ -205,7 +205,7 @@ const type - Tcentre = (do_centre,do_not_centre); + Tcentre = (do_not_centre,do_centre); PCustomCodeEditor = ^TCustomCodeEditor; PEditorLineInfo = ^TEditorLineInfo; @@ -6386,7 +6386,7 @@ begin OldSStart:=SelStart;} CurPos.X:=X; CurPos.Y:=Y; - TrackCursor(do_centre); + TrackCursor(do_not_centre); if not IsLineVisible(CurPos.Y) then begin F:=GetLineFold(CurPos.Y);