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_getln.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_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 129cb323ea..24fc60e60a 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -523,7 +523,7 @@ static void may_do_incsearch_highlighting(int firstc, long count, // positioned in the same way as the actual search command restore_viewstate(&s->old_viewstate); changed_cline_bef_curs(); - update_topline(); + update_topline(curwin); if (found != 0) { pos_T save_pos = curwin->w_cursor; @@ -1546,7 +1546,7 @@ static int may_do_command_line_next_incsearch(int firstc, long count, set_search_match(&s->match_end); curwin->w_cursor = s->match_start; changed_cline_bef_curs(); - update_topline(); + update_topline(curwin); validate_cursor(); highlight_match = true; save_viewstate(&s->old_viewstate); @@ -2242,7 +2242,7 @@ static int command_line_changed(CommandLineState *s) // Restore the window "view". curwin->w_cursor = s->is_state.save_cursor; restore_viewstate(&s->is_state.old_viewstate); - update_topline(); + update_topline(curwin); redrawcmdline(); |