From a177c7df093f573c4bcb7b422bd615ce239be367 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Tue, 10 Aug 2021 22:32:08 +0200 Subject: refactor(plines): remove implicit curwin plines() function --- src/nvim/screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/screen.c') diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 2fc5777937..7292229c0a 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -1694,7 +1694,7 @@ static void win_update(win_T *wp, Providers *providers) /* * There is a trick with w_botline. If we invalidate it on each * change that might modify it, this will cause a lot of expensive - * calls to plines() in update_topline() each time. Therefore the + * calls to plines_win() in update_topline() each time. Therefore the * value of w_botline is often approximated, and this value is used to * compute the value of w_topline. If the value of w_botline was * wrong, check that the value of w_topline is correct (cursor is on @@ -4119,7 +4119,7 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, /* * Update w_cline_height and w_cline_folded if the cursor line was - * updated (saves a call to plines() later). + * updated (saves a call to plines_win() later). */ if (wp == curwin && lnum == curwin->w_cursor.lnum) { curwin->w_cline_row = startrow; -- cgit From 7f71e8a6b3d2ce6257ed24cf74a8f130edc8f0b0 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Tue, 10 Aug 2021 22:59:29 +0200 Subject: refactor(plines): move out plines related code from misc1.c --- src/nvim/screen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/screen.c') diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 7292229c0a..38ed2816ba 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -101,6 +101,7 @@ #include "nvim/option.h" #include "nvim/os_unix.h" #include "nvim/path.h" +#include "nvim/plines.h" #include "nvim/popupmnu.h" #include "nvim/quickfix.h" #include "nvim/regexp.h" -- cgit