summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-04-13 12:39:22 +0200
committerBram Moolenaar <Bram@vim.org>2015-04-13 12:39:22 +0200
commit695baeefe17adcd95f91d089efee87bd96fc98db (patch)
treebb9ea0e730aeefc805bf219e581851cfc651fd32 /src/ex_docmd.c
parentde1502f2b48f77c98547a66b324e76be422228d3 (diff)
patch 7.4.693v7.4.693
Problem: Session file is not correct when there are multiple tab pages. Solution: Reset the current window number for each tab page. (Jacob Niehus)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 453d83e8d6..e46ea05c1d 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -10845,7 +10845,6 @@ makeopens(fd, dirnow)
buf_T *buf;
int only_save_windows = TRUE;
int nr;
- int cnr = 1;
int restore_size = TRUE;
win_T *wp;
char_u *sname;
@@ -10983,7 +10982,8 @@ makeopens(fd, dirnow)
tab_topframe = topframe;
for (tabnr = 1; ; ++tabnr)
{
- int need_tabnew = FALSE;
+ int need_tabnew = FALSE;
+ int cnr = 1;
if ((ssop_flags & SSOP_TABPAGES))
{