mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
Convert some values from buffer_defs.h to bools
This commit is contained in:
@@ -485,7 +485,7 @@ static void newFoldLevelWin(win_T *wp)
|
||||
fp = (fold_T *)wp->w_folds.ga_data;
|
||||
for (int i = 0; i < wp->w_folds.ga_len; ++i)
|
||||
fp[i].fd_flags = FD_LEVEL;
|
||||
wp->w_fold_manual = FALSE;
|
||||
wp->w_fold_manual = false;
|
||||
}
|
||||
changed_window_setting_win(wp);
|
||||
}
|
||||
@@ -648,7 +648,7 @@ void foldCreate(linenr_T start, linenr_T end)
|
||||
if (use_level && !closed && level < curwin->w_p_fdl)
|
||||
closeFold(start, 1L);
|
||||
if (!use_level)
|
||||
curwin->w_fold_manual = TRUE;
|
||||
curwin->w_fold_manual = true;
|
||||
fp->fd_flags = FD_CLOSED;
|
||||
fp->fd_small = MAYBE;
|
||||
|
||||
@@ -755,7 +755,7 @@ deleteFold (
|
||||
void clearFolding(win_T *win)
|
||||
{
|
||||
deleteFoldRecurse(&win->w_folds);
|
||||
win->w_foldinvalid = FALSE;
|
||||
win->w_foldinvalid = false;
|
||||
}
|
||||
|
||||
/* foldUpdate() {{{2 */
|
||||
@@ -800,7 +800,7 @@ void foldUpdate(win_T *wp, linenr_T top, linenr_T bot)
|
||||
*/
|
||||
void foldUpdateAll(win_T *win)
|
||||
{
|
||||
win->w_foldinvalid = TRUE;
|
||||
win->w_foldinvalid = true;
|
||||
redraw_win_later(win, NOT_VALID);
|
||||
}
|
||||
|
||||
@@ -1098,7 +1098,7 @@ static void checkupdate(win_T *wp)
|
||||
{
|
||||
if (wp->w_foldinvalid) {
|
||||
foldUpdate(wp, (linenr_T)1, (linenr_T)MAXLNUM); /* will update all */
|
||||
wp->w_foldinvalid = FALSE;
|
||||
wp->w_foldinvalid = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1251,7 +1251,7 @@ setManualFoldWin (
|
||||
found->fd_flags = FD_CLOSED;
|
||||
done |= DONE_ACTION;
|
||||
}
|
||||
wp->w_fold_manual = TRUE;
|
||||
wp->w_fold_manual = true;
|
||||
if (done & DONE_ACTION)
|
||||
changed_window_setting_win(wp);
|
||||
done |= DONE_FOLD;
|
||||
@@ -1877,7 +1877,7 @@ static void foldUpdateIEMS(win_T *wp, linenr_T top, linenr_T bot)
|
||||
/* Need to update all folds. */
|
||||
top = 1;
|
||||
bot = wp->w_buffer->b_ml.ml_line_count;
|
||||
wp->w_foldinvalid = FALSE;
|
||||
wp->w_foldinvalid = false;
|
||||
|
||||
/* Mark all folds a maybe-small. */
|
||||
setSmallMaybe(&wp->w_folds);
|
||||
@@ -2285,12 +2285,12 @@ static linenr_T foldUpdateIEMSRecurse(garray_T *gap, int level,
|
||||
* The new fold is closed if the fold above it is closed.
|
||||
* The first fold depends on the containing fold. */
|
||||
if (topflags == FD_OPEN) {
|
||||
flp->wp->w_fold_manual = TRUE;
|
||||
flp->wp->w_fold_manual = true;
|
||||
fp->fd_flags = FD_OPEN;
|
||||
} else if (i <= 0) {
|
||||
fp->fd_flags = topflags;
|
||||
if (topflags != FD_LEVEL)
|
||||
flp->wp->w_fold_manual = TRUE;
|
||||
flp->wp->w_fold_manual = true;
|
||||
} else
|
||||
fp->fd_flags = (fp - 1)->fd_flags;
|
||||
fp->fd_small = MAYBE;
|
||||
|
Reference in New Issue
Block a user