fold: pvs/v1071

"void" cast unused return value of hasFolding().
This commit is contained in:
Jan Edmund Lazo
2021-06-05 12:29:43 -04:00
parent c6b8598616
commit 61e07d98dd

View File

@@ -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;
}