window: refactor boolean variables in win_close()

free_buf (param) and help_window (variable) are bool.
This commit is contained in:
Jan Edmund Lazo
2018-09-06 20:12:15 -04:00
parent dc15dcffad
commit cfb2828897
7 changed files with 18 additions and 20 deletions

View File

@@ -6192,7 +6192,7 @@ static int open_cmdwin(void)
wp = curwin;
set_bufref(&bufref, curbuf);
win_goto(old_curwin);
win_close(wp, TRUE);
win_close(wp, true);
// win_close() may have already wiped the buffer when 'bh' is
// set to 'wipe'.