diff options
author | nyamatongwe <devnull@localhost> | 2011-12-10 20:19:08 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-12-10 20:19:08 +1100 |
commit | 8327355c17218e11ca9389bb38723c747e425984 (patch) | |
tree | f58e2f1e39d8bcc2aa7d0d17b3f2c28521610829 /src | |
parent | e0d11dff4f08657ba4b45ce521ab80508ad804ee (diff) | |
download | scintilla-mirror-8327355c17218e11ca9389bb38723c747e425984.tar.gz |
Don't select into virtual space for SCI_LINESCROLLDOWN/UP. Bug #3451681.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index e3a743931..96dc76c1e 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1115,12 +1115,14 @@ void Editor::MoveCaretInsideView(bool ensureVisible) { Point pt = PointMainCaret(); if (pt.y < rcClient.top) { MovePositionTo(SPositionFromLocation( - Point(lastXChosen - xOffset, rcClient.top)), + Point(lastXChosen - xOffset, rcClient.top), + false, false, (virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0), Selection::noSel, ensureVisible); } else if ((pt.y + vs.lineHeight - 1) > rcClient.bottom) { int yOfLastLineFullyDisplayed = rcClient.top + (LinesOnScreen() - 1) * vs.lineHeight; MovePositionTo(SPositionFromLocation( - Point(lastXChosen - xOffset, rcClient.top + yOfLastLineFullyDisplayed)), + Point(lastXChosen - xOffset, rcClient.top + yOfLastLineFullyDisplayed), + false, false, (virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0), Selection::noSel, ensureVisible); } } |