mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-29 16:29:33 +02:00
SourceEditor: Fix IsCaretOnScreen (for finding jump target edit)
git-svn-id: trunk@25412 -
This commit is contained in:
parent
7af77a0ab8
commit
8a1ed611d5
@ -4456,7 +4456,7 @@ var
|
||||
begin
|
||||
LinesInWin := EditorComponent.LinesInWindow;
|
||||
CurTopLine := EditorComponent.TopView;
|
||||
Y := EditorComponent.TextIndexToViewPos(EditorComponent.CaretY);
|
||||
Y := EditorComponent.TextIndexToViewPos(ACaret.Y);
|
||||
if UsesoftCenter then begin
|
||||
MinLines := Min(
|
||||
Min( Max(LinesInWin div SoftCenterFactor, SoftCenterMinimum),
|
||||
|
Loading…
Reference in New Issue
Block a user