mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 12:28:18 +00:00
fold: add const to hasFoldingWin() variables
cache is bool so update callers to pass true/false, not TRUE/FALSE.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user