From 4d9520ec86aaea607f0dc7f1630a82a1cdf9515a Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Wed, 23 Dec 2020 16:21:10 +0100 Subject: refactor: pass the window to get_(side)scrolloff_value to less rely on curwin --- src/nvim/screen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nvim/screen.c') diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 2eeeebb88d..0018a50477 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -2820,10 +2820,12 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, n_extra = col + 1; } else { n_extra = grid->Columns - col; + ILOG("n_extra %d vs total widht %d", grid->Columns, col); } char_attr = win_hl_attr(wp, HLF_DED); } if (*p_sbr != NUL && need_showbreak) { + ILOG("need showbreak %d", need_showbreak); /* Draw 'showbreak' at the start of each broken line. */ p_extra = p_sbr; c_extra = NUL; -- cgit