aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-12-15 18:22:55 +1100
committernyamatongwe <devnull@localhost>2011-12-15 18:22:55 +1100
commit7ee4e48bf84980a4cbb56a49a168b8fed36f83e2 (patch)
treefcc7ec3567ad9660259b62f3b5e58c48a565ca47 /src
parent1be60b45347cbfce305f8a7aa416edf849019176 (diff)
downloadscintilla-mirror-7ee4e48bf84980a4cbb56a49a168b8fed36f83e2.tar.gz
Replaced explicit mask test with getter method.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 20509aef5..87a12ef8a 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1116,13 +1116,13 @@ void Editor::MoveCaretInsideView(bool ensureVisible) {
if (pt.y < rcClient.top) {
MovePositionTo(SPositionFromLocation(
Point(lastXChosen - xOffset, rcClient.top),
- false, false, (virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0),
+ false, false, UserVirtualSpace()),
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),
- false, false, (virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0),
+ false, false, UserVirtualSpace()),
Selection::noSel, ensureVisible);
}
}