mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 03:58:32 +00:00
refactor(plines): remove implicit curwin plines() function
This commit is contained in:
@@ -5122,11 +5122,13 @@ static void nv_scroll(cmdarg_T *cap)
|
||||
--n;
|
||||
break;
|
||||
}
|
||||
used += plines(curwin->w_topline + n);
|
||||
if (used >= half)
|
||||
used += plines_win(curwin, curwin->w_topline + n, true);
|
||||
if (used >= half) {
|
||||
break;
|
||||
if (hasFolding(curwin->w_topline + n, NULL, &lnum))
|
||||
}
|
||||
if (hasFolding(curwin->w_topline + n, NULL, &lnum)) {
|
||||
n = lnum - curwin->w_topline;
|
||||
}
|
||||
}
|
||||
if (n > 0 && used > curwin->w_height_inner) {
|
||||
n--;
|
||||
|
Reference in New Issue
Block a user