4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: The Gnome session file doesn't restore tab pages.
12 Solution: Add SSOP_TABPAGES to the session flags. (Matias D'Ambrosio)
13 Files: src/gui_gtk_x11.c
16 *** ../vim-7.1.009/src/gui_gtk_x11.c Mon May 14 19:35:51 2007
17 --- src/gui_gtk_x11.c Sat Jun 9 16:54:13 2007
20 escaped_filename = vim_strsave_escaped(filename, escape_chars);
21 if (escaped_filename == NULL)
23 ! mksession_cmdline = g_strconcat("mksession ", (char *)escaped_filename, NULL);
24 vim_free(escaped_filename);
26 * Use a reasonable hardcoded set of 'sessionoptions' flags to avoid
27 * unpredictable effects when the session is saved automatically. Also,
29 escaped_filename = vim_strsave_escaped(filename, escape_chars);
30 if (escaped_filename == NULL)
32 ! mksession_cmdline = g_strconcat("mksession ", (char *)escaped_filename,
34 vim_free(escaped_filename);
37 * Use a reasonable hardcoded set of 'sessionoptions' flags to avoid
38 * unpredictable effects when the session is saved automatically. Also,
42 save_ssop_flags = ssop_flags;
43 ssop_flags = (SSOP_BLANK|SSOP_CURDIR|SSOP_FOLDS|SSOP_GLOBALS
44 ! |SSOP_HELP|SSOP_OPTIONS|SSOP_WINSIZE);
46 do_cmdline_cmd((char_u *)"let Save_VV_this_session = v:this_session");
47 failed = (do_cmdline_cmd((char_u *)mksession_cmdline) == FAIL);
50 save_ssop_flags = ssop_flags;
51 ssop_flags = (SSOP_BLANK|SSOP_CURDIR|SSOP_FOLDS|SSOP_GLOBALS
52 ! |SSOP_HELP|SSOP_OPTIONS|SSOP_WINSIZE|SSOP_TABPAGES);
54 do_cmdline_cmd((char_u *)"let Save_VV_this_session = v:this_session");
55 failed = (do_cmdline_cmd((char_u *)mksession_cmdline) == FAIL);
56 *** ../vim-7.1.009/src/version.c Tue Jun 19 17:49:12 2007
57 --- src/version.c Tue Jun 19 18:07:09 2007
61 { /* Add new patch number below this line */
67 GALAHAD: No look, really, this isn't nescess ...
68 PIGLET: We must examine you.
69 GALAHAD: There's nothing wrong with ... that.
70 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
72 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
73 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
74 \\\ download, build and distribute -- http://www.A-A-P.org ///
75 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///