{
/* Pass flags on for ":vertical wincmd ]". */
postponed_split_flags = cmdmod.split;
+ postponed_split_tab = cmdmod.tab;
do_window(*eap->arg, eap->addr_count > 0 ? eap->line2 : 0L, xchar);
postponed_split_flags = 0;
+ postponed_split_tab = 0;
}
}
#endif
{
postponed_split = -1;
postponed_split_flags = cmdmod.split;
+ postponed_split_tab = cmdmod.tab;
ex_tag_cmd(eap, cmdnames[eap->cmdidx].cmd_name + 1);
postponed_split_flags = 0;
+ postponed_split_tab = 0;
}
#endif
#ifdef FEAT_WINDOWS
EXTERN int postponed_split INIT(= 0); /* for CTRL-W CTRL-] command */
EXTERN int postponed_split_flags INIT(= 0); /* args for win_split() */
+EXTERN int postponed_split_tab INIT(= 0); /* cmdmod.tab */
# ifdef FEAT_QUICKFIX
EXTERN int g_do_tagpreview INIT(= 0); /* for tag preview commands:
height of preview window */
}
postponed_split = -1;
postponed_split_flags = cmdmod.split;
+ postponed_split_tab = cmdmod.tab;
}
#endif
#ifdef FEAT_WINDOWS
postponed_split_flags = 0;
+ postponed_split_tab = 0;
#endif
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 216,
/**/
215,
/**/
int
may_open_tabpage()
{
- int n = cmdmod.tab;
+ int n = (cmdmod.tab == 0) ? postponed_split_tab : cmdmod.tab;
- if (cmdmod.tab != 0)
+ if (n != 0)
{
cmdmod.tab = 0; /* reset it to avoid doing it twice */
+ postponed_split_tab = 0;
return win_new_tabpage(n);
}
return FAIL;