From 3de785e7b58e4d99e02382881767934efcd0f82c Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 2 Aug 2018 08:31:04 -0400 Subject: fold: add const to hasFoldingWin() variables cache is bool so update callers to pass true/false, not TRUE/FALSE. --- src/nvim/diff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/diff.c') diff --git a/src/nvim/diff.c b/src/nvim/diff.c index cc4bc1da6a..8699c16351 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -1486,7 +1486,7 @@ int diff_check(win_T *wp, linenr_T lnum) } // A closed fold never has filler lines. - if (hasFoldingWin(wp, lnum, NULL, NULL, TRUE, NULL)) { + if (hasFoldingWin(wp, lnum, NULL, NULL, true, NULL)) { return 0; } @@ -1793,7 +1793,7 @@ void diff_set_topline(win_T *fromwin, win_T *towin) check_topfill(towin, false); (void)hasFoldingWin(towin, towin->w_topline, &towin->w_topline, - NULL, TRUE, NULL); + NULL, true, NULL); } /// This is called when 'diffopt' is changed. -- cgit