aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorMatthieu Coudron <mcoudron@hotmail.com>2020-12-23 16:53:35 +0100
committerMatthieu Coudron <mcoudron@hotmail.com>2020-12-23 16:53:35 +0100
commit45166313ccf15dac5dd45926e77c58240de79413 (patch)
treeccb4aadd0b320f1fc17e72d8be51933bba72dc81 /src/nvim/fileio.c
parent4d9520ec86aaea607f0dc7f1630a82a1cdf9515a (diff)
downloadrneovim-45166313ccf15dac5dd45926e77c58240de79413.tar.gz
rneovim-45166313ccf15dac5dd45926e77c58240de79413.tar.bz2
rneovim-45166313ccf15dac5dd45926e77c58240de79413.zip
refactor: de-curwin-ify update_topline/curs_columns
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c2
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. */