window: no_display in restore_win() is bool

This commit is contained in:
Jan Edmund Lazo 2018-08-07 11:40:52 -04:00
parent 1468946154
commit 2b229b816b
2 changed files with 6 additions and 8 deletions

View File

@ -10236,8 +10236,8 @@ static void f_gettabvar(typval_T *argvars, typval_T *rettv, FunPtr fptr)
}
}
/* restore previous notion of curwin */
restore_win(oldcurwin, oldtabpage, TRUE);
// restore previous notion of curwin
restore_win(oldcurwin, oldtabpage, true);
}
if (!done && argvars[2].v_type != VAR_UNKNOWN) {

View File

@ -5502,12 +5502,10 @@ int switch_win(win_T **save_curwin, tabpage_T **save_curtab, win_T *win, tabpage
return OK;
}
/*
* Restore current tabpage and window saved by switch_win(), if still valid.
* When "no_display" is TRUE the display won't be affected, no redraw is
* triggered.
*/
void restore_win(win_T *save_curwin, tabpage_T *save_curtab, int no_display)
// Restore current tabpage and window saved by switch_win(), if still valid.
// When "no_display" is true the display won't be affected, no redraw is
// triggered.
void restore_win(win_T *save_curwin, tabpage_T *save_curtab, bool no_display)
{
if (save_curtab != NULL && valid_tabpage(save_curtab)) {
if (no_display) {