4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: ":mksession" doesn't restore window layout correctly in tab pages
12 other than the current one. (Zhibin He)
13 Solution: Use the correct topframe for producing the window layout commands.
17 *** ../vim-7.0.173/src/ex_docmd.c Tue Nov 14 20:24:32 2006
18 --- src/ex_docmd.c Tue Nov 28 21:32:41 2006
22 win_T *edited_win = NULL;
25 + frame_T *tab_topframe;
27 if (ssop_flags & SSOP_BUFFERS)
28 only_save_windows = FALSE; /* Save ALL buffers */
34 tab_firstwin = firstwin; /* first window in tab page "tabnr" */
35 + tab_topframe = topframe;
36 for (tabnr = 1; ; ++tabnr)
38 int need_tabnew = FALSE;
43 break; /* done all tab pages */
46 tab_firstwin = firstwin;
47 + tab_topframe = topframe;
51 tab_firstwin = tp->tp_firstwin;
52 + tab_topframe = tp->tp_topframe;
60 if (put_line(fd, "set splitbelow splitright") == FAIL)
62 ! if (ses_win_rec(fd, topframe) == FAIL)
64 if (!p_sb && put_line(fd, "set nosplitbelow") == FAIL)
68 if (put_line(fd, "set splitbelow splitright") == FAIL)
70 ! if (ses_win_rec(fd, tab_topframe) == FAIL)
72 if (!p_sb && put_line(fd, "set nosplitbelow") == FAIL)
74 *** ../vim-7.0.173/src/version.c Tue Nov 28 20:54:32 2006
75 --- src/version.c Tue Nov 28 21:40:07 2006
79 { /* Add new patch number below this line */
85 ARTHUR: Well, it doesn't matter. Will you go and tell your master that
86 Arthur from the Court of Camelot is here.
87 GUARD #1: Listen, in order to maintain air-speed velocity, a swallow
88 needs to beat its wings 43 times every second, right?
90 The Quest for the Holy Grail (Monty Python)
92 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
93 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
94 \\\ download, build and distribute -- http://www.A-A-P.org ///
95 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///