Skip to content

Commit f5ada5c

Browse files
brammooldouglaskayama
authored andcommitted
patch 7.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)
1 parent 6115c8c commit f5ada5c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/ex_docmd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10864,7 +10864,6 @@ makeopens(fd, dirnow)
1086410864
buf_T *buf;
1086510865
int only_save_windows = TRUE;
1086610866
int nr;
10867-
int cnr = 1;
1086810867
int restore_size = TRUE;
1086910868
win_T *wp;
1087010869
char_u *sname;
@@ -11010,7 +11009,8 @@ makeopens(fd, dirnow)
1101011009
tab_topframe = topframe;
1101111010
for (tabnr = 1; ; ++tabnr)
1101211011
{
11013-
int need_tabnew = FALSE;
11012+
int need_tabnew = FALSE;
11013+
int cnr = 1;
1101411014

1101511015
if ((ssop_flags & SSOP_TABPAGES))
1101611016
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ static char *(features[]) =
756756

757757
static int included_patches[] =
758758
{ /* Add new patch number below this line */
759+
/**/
760+
693,
759761
/**/
760762
692,
761763
/**/

0 commit comments

Comments
 (0)