mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 12:08:33 +00:00
fold: pvs/v1071
"void" cast unused return value of hasFolding().
This commit is contained in:
@@ -5120,8 +5120,8 @@ static void nv_scroll(cmdarg_T *cap)
|
||||
/* Count a fold for one screen line. */
|
||||
lnum = curwin->w_topline;
|
||||
while (n-- > 0 && lnum < curwin->w_botline - 1) {
|
||||
hasFolding(lnum, NULL, &lnum);
|
||||
++lnum;
|
||||
(void)hasFolding(lnum, NULL, &lnum);
|
||||
lnum++;
|
||||
}
|
||||
n = lnum - curwin->w_topline;
|
||||
}
|
||||
|
Reference in New Issue
Block a user