diff options
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index f4dd90fad2..7931452180 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -5103,7 +5103,7 @@ void buf_reload(buf_T *buf, int orig_mode) curwin->w_topline = old_topline; curwin->w_cursor = old_cursor; check_cursor(); - update_topline(); + update_topline(curwin); keep_filetype = FALSE; /* Update folds unless they are defined manually. */ |