aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.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/screen.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/screen.c')
-rw-r--r--src/nvim/screen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 0018a50477..1110b15198 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -683,7 +683,7 @@ void conceal_check_cursor_line(void)
redrawWinline(curwin, curwin->w_cursor.lnum);
// Need to recompute cursor column, e.g., when starting Visual mode
// without concealing. */
- curs_columns(true);
+ curs_columns(curwin, true);
}
}
@@ -1698,7 +1698,7 @@ static void win_update(win_T *wp, Providers *providers)
const int new_wcol = wp->w_wcol;
recursive = true;
curwin->w_valid &= ~VALID_TOPLINE;
- update_topline(); // may invalidate w_botline again
+ update_topline(curwin); // may invalidate w_botline again
if (old_wcol != new_wcol
&& (wp->w_valid & (VALID_WCOL|VALID_WROW))
@@ -7382,7 +7382,7 @@ void screen_resize(int width, int height)
cmdline_pum_display(false);
}
} else {
- update_topline();
+ update_topline(curwin);
if (pum_drawn()) {
// TODO(bfredl): ins_compl_show_pum wants to redraw the screen first.
// For now make sure the nested update_screen(0) won't redraw the