mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 07:18:17 +00:00
refactor: pass the window to get_(side)scrolloff_value
to less rely on curwin
This commit is contained in:
@@ -594,7 +594,7 @@ static int insert_check(VimState *state)
|
||||
|
||||
if (curwin->w_wcol < s->mincol - curbuf->b_p_ts
|
||||
&& curwin->w_wrow == curwin->w_winrow
|
||||
+ curwin->w_height_inner - 1 - get_scrolloff_value()
|
||||
+ curwin->w_height_inner - 1 - get_scrolloff_value(curwin)
|
||||
&& (curwin->w_cursor.lnum != curwin->w_topline
|
||||
|| curwin->w_topfill > 0)) {
|
||||
if (curwin->w_topfill > 0) {
|
||||
|
Reference in New Issue
Block a user