aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cocoa/ScintillaCocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index a10a2381a..1e9d6e973 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -1633,7 +1633,7 @@ bool ScintillaCocoa::SetScrollingSize(void) {
NSScrollView *scrollView = ScrollContainer();
NSClipView *clipView = [ScrollContainer() contentView];
NSRect clipRect = [clipView bounds];
- CGFloat docHeight = (cs.LinesDisplayed()+1) * vs.lineHeight;
+ CGFloat docHeight = cs.LinesDisplayed() * vs.lineHeight;
if (!endAtLastLine)
docHeight += (int([scrollView bounds].size.height / vs.lineHeight)-3) * vs.lineHeight;
// Allow extra space so that last scroll position places whole line at top