aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-02-16 08:37:42 +0800
committerGitHub <noreply@github.com>2023-02-16 08:37:42 +0800
commit5dc4eaf386d70b9bbef321a00bcbb5d475f36542 (patch)
tree4dd105e8c45b6f7b47f22afeb18b3bfcc8c0144f /src/nvim/buffer.c
parentf1c5887377c9ae547a7564ec4fc52d72656a974f (diff)
parent0bb3a373d32e150af3909e3873be91f34df211dc (diff)
downloadrneovim-5dc4eaf386d70b9bbef321a00bcbb5d475f36542.tar.gz
rneovim-5dc4eaf386d70b9bbef321a00bcbb5d475f36542.tar.bz2
rneovim-5dc4eaf386d70b9bbef321a00bcbb5d475f36542.zip
Merge pull request #22275 from zeertzjq/vim-9.0.1309
vim-patch:9.0.{1309,1310,1312}: scrolling two lines with even line count and 'scrolloff'
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 129a8c6fb2..98832a98c9 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -1676,7 +1676,7 @@ void 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
}
// Change directories when the 'acd' option is set.