aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-12-24 22:43:27 +0100
committerGitHub <noreply@github.com>2020-12-24 22:43:27 +0100
commit8c8cc35926f265bf4f048b83fd130bef3932851e (patch)
treec9ef81f318eace216546c0a6eabd6df5c71847d4 /src/nvim/screen.c
parent88ae03bcdb8992fd91a3efdb61dbd7e2aa395eff (diff)
parent7add3ef996db3fd6ec8d03d2b8d879c58934b6e5 (diff)
downloadrneovim-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/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 2eeeebb88d..afabbe6afc 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))
@@ -7380,7 +7380,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