diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-02 08:31:04 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-02 08:44:42 -0400 |
commit | 3de785e7b58e4d99e02382881767934efcd0f82c (patch) | |
tree | f3e994b4753566a8aca998c84c7176735db9c475 /src/nvim/diff.c | |
parent | d2c1d9c466b1154afa47befef019439a241810c3 (diff) | |
download | rneovim-3de785e7b58e4d99e02382881767934efcd0f82c.tar.gz rneovim-3de785e7b58e4d99e02382881767934efcd0f82c.tar.bz2 rneovim-3de785e7b58e4d99e02382881767934efcd0f82c.zip |
fold: add const to hasFoldingWin() variables
cache is bool so update callers to pass true/false, not TRUE/FALSE.
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r-- | src/nvim/diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
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. |