mirror of
https://github.com/neovim/neovim.git
synced 2024-12-28 14:31:13 -07:00
window: no_display in restore_win() is bool
This commit is contained in:
parent
1468946154
commit
2b229b816b
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user