diff options
author | nyamatongwe <devnull@localhost> | 2001-08-07 13:13:36 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-08-07 13:13:36 +0000 |
commit | 46ade7fb100ba43e6814a9b5297afa6c491cb244 (patch) | |
tree | 5696860276aede7528b89e09796f6d51e1e48d49 /src/Editor.cxx | |
parent | 7eaef3a3fa623a84ab8921377416eac8c4d72d85 (diff) | |
download | scintilla-mirror-46ade7fb100ba43e6814a9b5297afa6c491cb244.tar.gz |
Fixed bug with atomatic scrolling when some folding has been done caused
by using document line numbers rather than view line numbers.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 68089a5d9..7c44dfb0c 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3105,11 +3105,11 @@ void Editor::ButtonMove(Point pt) { // Autoscroll PRectangle rcClient = GetClientRectangle(); if (pt.y > rcClient.bottom) { - int lineMove = LineFromLocation(pt); + int lineMove = cs.DisplayFromDoc(LineFromLocation(pt)); ScrollTo(lineMove - LinesOnScreen() + 5); Redraw(); } else if (pt.y < rcClient.top) { - int lineMove = LineFromLocation(pt); + int lineMove = cs.DisplayFromDoc(LineFromLocation(pt)); ScrollTo(lineMove - 5); Redraw(); } |