From 695baeefe17adcd95f91d089efee87bd96fc98db Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 13 Apr 2015 12:39:22 +0200 Subject: [PATCH] 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) --- src/ex_docmd.c | 4 ++-- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 453d83e8d..e46ea05c1 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)) { diff --git a/src/version.c b/src/version.c index 95dc69d90..9431180b1 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 693, /**/ 692, /**/ -- 2.50.1