aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-10-08 23:02:57 +1100
committernyamatongwe <devnull@localhost>2010-10-08 23:02:57 +1100
commit515c4bef2f6dacefc581bd99bf92a58d646c1624 (patch)
tree99be5c53fc2a30bcdd9fa98ce9068c08260fbf79 /src/Editor.cxx
parent71b918a362edf2c7b6932745218933e8ae664eb0 (diff)
downloadscintilla-mirror-515c4bef2f6dacefc581bd99bf92a58d646c1624.tar.gz
Fix for bug #3081721. Scroll to make caret visible off-by-one error.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 84907b01d..d180e6194 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -1084,7 +1084,7 @@ Editor::XYScrollPosition Editor::XYScrollToMakeVisible(const bool useMargin, con
XYScrollPosition newXY(xOffset, topLine);
// Vertical positioning
- if (vert && (pt.y < rcClient.top || ptBottomCaret.y > rcClient.bottom || (caretYPolicy & CARET_STRICT) != 0)) {
+ if (vert && (pt.y < rcClient.top || ptBottomCaret.y >= rcClient.bottom || (caretYPolicy & CARET_STRICT) != 0)) {
const int linesOnScreen = LinesOnScreen();
const int halfScreen = Platform::Maximum(linesOnScreen - 1, 2) / 2;
const bool bSlop = (caretYPolicy & CARET_SLOP) != 0;