hasFoldingWin now return bool

This commit is contained in:
Nicolas Cornu
2015-09-08 02:34:43 +02:00
parent 41778e2e10
commit 63a39015f5
5 changed files with 14 additions and 15 deletions

View File

@@ -282,7 +282,7 @@ linenr_T get_cursor_rel_lnum(win_T *wp, linenr_T lnum)
// Loop until we reach to_line, skipping folds.
for (; from_line < to_line; from_line++, retval++) {
// If from_line is in a fold, set it to the last line of that fold.
hasFoldingWin(wp, from_line, NULL, &from_line, true, NULL);
(void)hasFoldingWin(wp, from_line, NULL, &from_line, true, NULL);
}
// If to_line is in a closed fold, the line count is off by +1. Correct it.