summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-03-11 14:48:29 +0000
committerBram Moolenaar <Bram@vim.org>2007-03-11 14:48:29 +0000
commitd326ce83d57b6271692842674839fcf1e639f75b (patch)
tree0784ecab67487c94c7eb4a174c3d940ab96dbc15 /src/window.c
parent48c2c9a19a1f2703c500c6dc8c8250dbf6c0acc9 (diff)
downloadvim-git-d326ce83d57b6271692842674839fcf1e639f75b.tar.gz
updated for version 7.0-216v7.0.216
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index aa4d26a0b..40aa2f062 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3290,11 +3290,12 @@ win_new_tabpage(after)
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;