aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/fold.c4
-rw-r--r--src/nvim/mouse.c2
-rw-r--r--src/nvim/move.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index 784faa35a3..b52938075c 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -148,9 +148,9 @@ int hasAnyFolding(win_T *win)
* When returning TRUE, *firstp and *lastp are set to the first and last
* lnum of the sequence of folded lines (skipped when NULL).
*/
-int hasFolding(linenr_T lnum, linenr_T *firstp, linenr_T *lastp)
+bool hasFolding(linenr_T lnum, linenr_T *firstp, linenr_T *lastp)
{
- return hasFoldingWin(curwin, lnum, firstp, lastp, TRUE, NULL) ? TRUE : FALSE;
+ return hasFoldingWin(curwin, lnum, firstp, lastp, TRUE, NULL);
}
/* hasFoldingWin() {{{2 */
diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c
index 5d1c5b35db..3ae1a6a890 100644
--- a/src/nvim/mouse.c
+++ b/src/nvim/mouse.c
@@ -232,7 +232,7 @@ retnomove:
if (!first && count > -row)
break;
first = false;
- hasFolding(curwin->w_topline, &curwin->w_topline, NULL);
+ (void)hasFolding(curwin->w_topline, &curwin->w_topline, NULL);
if (curwin->w_topfill < diff_check(curwin, curwin->w_topline)) {
++curwin->w_topfill;
} else {
diff --git a/src/nvim/move.c b/src/nvim/move.c
index 6a00f66c52..55848bb257 100644
--- a/src/nvim/move.c
+++ b/src/nvim/move.c
@@ -648,7 +648,7 @@ static void validate_cheight(void)
+ curwin->w_topfill;
else
curwin->w_cline_height = plines(curwin->w_cursor.lnum);
- curwin->w_cline_folded = hasFolding(curwin->w_cursor.lnum, NULL, NULL) == TRUE;
+ curwin->w_cline_folded = hasFolding(curwin->w_cursor.lnum, NULL, NULL);
curwin->w_valid |= VALID_CHEIGHT;
}
}
@@ -1177,7 +1177,7 @@ void scrolldown_clamp(void)
--curwin->w_topline;
curwin->w_topfill = 0;
}
- hasFolding(curwin->w_topline, &curwin->w_topline, NULL);
+ (void)hasFolding(curwin->w_topline, &curwin->w_topline, NULL);
--curwin->w_botline; /* approximate w_botline */
curwin->w_valid &= ~(VALID_WROW|VALID_CROW|VALID_BOTLINE);
}