From 4c3550005ffaa11ef83fc91c4244b0d888382738 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 2 Apr 2013 15:31:16 +1100 Subject: Fix automatic scrolling on Cocoa. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index d02f095cb..c2731a1e3 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1240,7 +1240,9 @@ Editor::XYScrollPosition Editor::XYScrollToMakeVisible(const SelectionRange rang Point ptAnchor = LocationFromPosition(range.anchor); const Point ptOrigin = GetVisibleOriginInMain(); pt.x += ptOrigin.x; + pt.y += ptOrigin.y; ptAnchor.x += ptOrigin.x; + ptAnchor.y += ptOrigin.y; const Point ptBottomCaret(pt.x, pt.y + vs.lineHeight - 1); XYScrollPosition newXY(xOffset, topLine); -- cgit v1.2.3