From 61e07d98ddb9a3f141fc7534b0598b5677c3d004 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 5 Jun 2021 12:29:43 -0400 Subject: fold: pvs/v1071 "void" cast unused return value of hasFolding(). --- src/nvim/normal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim') diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 173d8d46d1..69afe1644e 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -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; } -- cgit