aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-09-10 00:32:43 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-09-10 00:32:43 -0400
commit6d50f4d0c9098497686161c08121b21d492a469d (patch)
tree539673000d461fa685920f341cd8d0f219f1b378 /src/nvim/fold.c
parentb50cc42eb7afda714f3678a627ff6c55d342bc30 (diff)
parent23acaf8940ca55d6fb4f180c2b78c2f90bfafa8a (diff)
downloadrneovim-6d50f4d0c9098497686161c08121b21d492a469d.tar.gz
rneovim-6d50f4d0c9098497686161c08121b21d492a469d.tar.bz2
rneovim-6d50f4d0c9098497686161c08121b21d492a469d.zip
Merge #3297 'move.c refactor'
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r--src/nvim/fold.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c
index ab557ecf68..b52938075c 100644
--- a/src/nvim/fold.c
+++ b/src/nvim/fold.c
@@ -148,14 +148,13 @@ 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);
}
/* hasFoldingWin() {{{2 */
-int
-hasFoldingWin (
+bool hasFoldingWin(
win_T *win,
linenr_T lnum,
linenr_T *firstp,
@@ -183,7 +182,7 @@ hasFoldingWin (
if (!hasAnyFolding(win)) {
if (infop != NULL)
infop->fi_level = 0;
- return FALSE;
+ return false;
}
if (cache) {
@@ -238,7 +237,7 @@ hasFoldingWin (
infop->fi_lnum = lnum - lnum_rel;
infop->fi_low_level = low_level == 0 ? level : low_level;
}
- return FALSE;
+ return false;
}
if (last > win->w_buffer->b_ml.ml_line_count) {
@@ -253,7 +252,7 @@ hasFoldingWin (
infop->fi_lnum = first;
infop->fi_low_level = low_level == 0 ? level + 1 : low_level;
}
- return TRUE;
+ return true;
}
/* foldLevel() {{{2 */