diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-04-02 15:31:16 +1100 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-04-02 15:31:16 +1100 |
commit | 4c3550005ffaa11ef83fc91c4244b0d888382738 (patch) | |
tree | 0d9914bbdf1229d46197c03a095dd8660a9c9539 /src | |
parent | e0f738cec43a5c60ee1c4dcd3eedd2f0805e18ab (diff) | |
download | scintilla-mirror-4c3550005ffaa11ef83fc91c4244b0d888382738.tar.gz |
Fix automatic scrolling on Cocoa.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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); |