diff options
author | Matthieu Coudron <mcoudron@hotmail.com> | 2020-12-23 16:21:10 +0100 |
---|---|---|
committer | Matthieu Coudron <mcoudron@hotmail.com> | 2020-12-23 16:21:10 +0100 |
commit | 4d9520ec86aaea607f0dc7f1630a82a1cdf9515a (patch) | |
tree | 3be455ca36108ecf32f09063f7505b2c1192a3e8 /src/nvim/screen.c | |
parent | 5ce328df401bc5cafd66caeb265835b939028b7f (diff) | |
download | rneovim-4d9520ec86aaea607f0dc7f1630a82a1cdf9515a.tar.gz rneovim-4d9520ec86aaea607f0dc7f1630a82a1cdf9515a.tar.bz2 rneovim-4d9520ec86aaea607f0dc7f1630a82a1cdf9515a.zip |
refactor: pass the window to get_(side)scrolloff_value
to less rely on curwin
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |