mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
window: refactor boolean variables in win_close()
free_buf (param) and help_window (variable) are bool.
This commit is contained in:
@@ -1551,7 +1551,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
|
||||
|
||||
/* When w_arg_idx is -1 remove the window (see create_windows()). */
|
||||
if (curwin->w_arg_idx == -1) {
|
||||
win_close(curwin, TRUE);
|
||||
win_close(curwin, true);
|
||||
advance = FALSE;
|
||||
}
|
||||
|
||||
@@ -1563,7 +1563,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
|
||||
// When w_arg_idx is -1 remove the window (see create_windows()).
|
||||
if (curwin->w_arg_idx == -1) {
|
||||
++arg_idx;
|
||||
win_close(curwin, TRUE);
|
||||
win_close(curwin, true);
|
||||
advance = FALSE;
|
||||
continue;
|
||||
}
|
||||
@@ -1598,7 +1598,7 @@ static void edit_buffers(mparm_T *parmp, char_u *cwd)
|
||||
did_emsg = FALSE; /* avoid hit-enter prompt */
|
||||
getout(1);
|
||||
}
|
||||
win_close(curwin, TRUE);
|
||||
win_close(curwin, true);
|
||||
advance = FALSE;
|
||||
}
|
||||
if (arg_idx == GARGCOUNT - 1)
|
||||
|
Reference in New Issue
Block a user