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 | 6d7aca3c835014caca0d7c4d5b75b36397c4b8c8 (patch) | |
tree | c561126dbd6863ff3f87cd45dc4b641b096d2ba7 /src | |
parent | 56eb7dd09cbf8574e08e67bb32ae5ce89e0e5f4f (diff) | |
download | scintilla-mirror-6d7aca3c835014caca0d7c4d5b75b36397c4b8c8.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); |