diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-12-24 22:43:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 22:43:27 +0100 |
commit | 8c8cc35926f265bf4f048b83fd130bef3932851e (patch) | |
tree | c9ef81f318eace216546c0a6eabd6df5c71847d4 /src/nvim/ex_cmds.c | |
parent | 88ae03bcdb8992fd91a3efdb61dbd7e2aa395eff (diff) | |
parent | 7add3ef996db3fd6ec8d03d2b8d879c58934b6e5 (diff) | |
download | rneovim-8c8cc35926f265bf4f048b83fd130bef3932851e.tar.gz rneovim-8c8cc35926f265bf4f048b83fd130bef3932851e.tar.bz2 rneovim-8c8cc35926f265bf4f048b83fd130bef3932851e.zip |
Merge pull request #13595 from teto/fix-filler
de curwinify some functions
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index b23209e1b6..2a96db6a8c 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -2706,7 +2706,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 @@ -3705,7 +3705,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; @@ -5740,7 +5740,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; |