From 962ff3562a9ebb3ba11d8c1e340e7a56a8273e06 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 10 Dec 2011 20:19:08 +1100 Subject: Don't select into virtual space for SCI_LINESCROLLDOWN/UP. Bug #3451681. --- src/Editor.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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); } } -- cgit v1.2.3