aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.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/ex_cmds.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/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 39902cf18e..05ff52fe9b 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -2705,7 +2705,7 @@ int do_ecmd(
if (topline == 0 && command == NULL) {
*so_ptr = 999; // force cursor to be vertically centered in the window
}
- update_topline();
+ update_topline(curwin);
curwin->w_scbind_pos = curwin->w_topline;
*so_ptr = n;
redraw_curbuf_later(NOT_VALID); // redraw this buffer later
@@ -3704,7 +3704,7 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout,
+ len_change;
highlight_match = TRUE;
- update_topline();
+ update_topline(curwin);
validate_cursor();
update_screen(SOME_VALID);
highlight_match = false;
@@ -5733,7 +5733,7 @@ static buf_T *show_sub(exarg_T *eap, pos_T old_cusr,
redraw_later(curwin, SOME_VALID);
win_enter(save_curwin, false); // Return to original window
- update_topline();
+ update_topline(curwin);
// Update screen now.
int save_rd = RedrawingDisabled;