summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-02-14 17:41:20 +0000
committerBram Moolenaar <Bram@vim.org>2023-02-14 17:41:20 +0000
commit1d6539cf36a7b6d1afe76fb6316fe662f543bf60 (patch)
treeb6e26e7756faf7847863510790cd4c2138635c72 /src/buffer.c
parent1a6476428f63e9fa0c2cbea296e475e60363af11 (diff)
patch 9.0.1309: scrolling two lines with even line count and 'scrolloff' setv9.0.1309
Problem: Scrolling two lines with even line count and 'scrolloff' set. Solution: Adjust how the topline is computed. (closes #10545)
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 0d523bd056..8fd81be869 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1953,7 +1953,7 @@ enter_buffer(buf_T *buf)
maketitle();
// when autocmds didn't change it
if (curwin->w_topline == 1 && !curwin->w_topline_was_set)
- scroll_cursor_halfway(FALSE); // redisplay at correct position
+ scroll_cursor_halfway(FALSE, FALSE); // redisplay at correct position
#ifdef FEAT_NETBEANS_INTG
// Send fileOpened event because we've changed buffers.