aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.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_getln.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_getln.c')
-rw-r--r--src/nvim/ex_getln.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index a0910f1394..1aa97c2966 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();