mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
window: no_display in restore_win() is bool
This commit is contained in:
@@ -10236,8 +10236,8 @@ static void f_gettabvar(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* restore previous notion of curwin */
|
// restore previous notion of curwin
|
||||||
restore_win(oldcurwin, oldtabpage, TRUE);
|
restore_win(oldcurwin, oldtabpage, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!done && argvars[2].v_type != VAR_UNKNOWN) {
|
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;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
// Restore current tabpage and window saved by switch_win(), if still valid.
|
||||||
* 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
|
||||||
* When "no_display" is TRUE the display won't be affected, no redraw is
|
// triggered.
|
||||||
* triggered.
|
void restore_win(win_T *save_curwin, tabpage_T *save_curtab, bool no_display)
|
||||||
*/
|
|
||||||
void restore_win(win_T *save_curwin, tabpage_T *save_curtab, int no_display)
|
|
||||||
{
|
{
|
||||||
if (save_curtab != NULL && valid_tabpage(save_curtab)) {
|
if (save_curtab != NULL && valid_tabpage(save_curtab)) {
|
||||||
if (no_display) {
|
if (no_display) {
|
||||||
|
Reference in New Issue
Block a user