diff options
author | Nicolas Cornu <nicolac76@yahoo.fr> | 2015-09-08 02:34:43 +0200 |
---|---|---|
committer | Nicolas Cornu <nicolac76@yahoo.fr> | 2015-09-08 02:34:43 +0200 |
commit | 63a39015f5510e1b0be094ae9298f31bf339cc0f (patch) | |
tree | a93458d4c421ccca43ced48d9abb23311e1fb9d7 /src/nvim/fold.c | |
parent | 41778e2e10e43d6ba96b27e63fb392a8d6d64b01 (diff) | |
download | rneovim-63a39015f5510e1b0be094ae9298f31bf339cc0f.tar.gz rneovim-63a39015f5510e1b0be094ae9298f31bf339cc0f.tar.bz2 rneovim-63a39015f5510e1b0be094ae9298f31bf339cc0f.zip |
hasFoldingWin now return bool
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r-- | src/nvim/fold.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c index ab557ecf68..784faa35a3 100644 --- a/src/nvim/fold.c +++ b/src/nvim/fold.c @@ -150,12 +150,11 @@ int hasAnyFolding(win_T *win) */ int hasFolding(linenr_T lnum, linenr_T *firstp, linenr_T *lastp) { - return hasFoldingWin(curwin, lnum, firstp, lastp, TRUE, NULL); + return hasFoldingWin(curwin, lnum, firstp, lastp, TRUE, NULL) ? TRUE : FALSE; } /* 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 */ |