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

@@ -842,7 +842,7 @@ void goto_buffer(exarg_T *eap, int start, int dir, int count)
enter_cleanup(&cs);
/* Quitting means closing the split window, nothing else. */
win_close(curwin, TRUE);
win_close(curwin, true);
swap_exists_action = SEA_NONE;
swap_exists_did_quit = TRUE;
@@ -4651,7 +4651,7 @@ void ex_buffer_all(exarg_T *eap)
&& !ONE_WINDOW
&& !(wp->w_closing || wp->w_buffer->b_locked > 0)
) {
win_close(wp, FALSE);
win_close(wp, false);
wpnext = firstwin; /* just in case an autocommand does
something strange with windows */
tpnext = first_tabpage; /* start all over...*/
@@ -4724,7 +4724,7 @@ void ex_buffer_all(exarg_T *eap)
enter_cleanup(&cs);
/* User selected Quit at ATTENTION prompt; close this window. */
win_close(curwin, TRUE);
win_close(curwin, true);
--open_wins;
swap_exists_action = SEA_NONE;
swap_exists_did_quit = TRUE;