Mercurial > vim
comparison src/gui_gtk_x11.c @ 1296:86079b930b3e v7.1.010
updated for version 7.1-010
author | vimboss |
---|---|
date | Tue, 19 Jun 2007 16:03:50 +0000 |
parents | 152e52624521 |
children | 99a9e42e5688 |
comparison
equal
deleted
inserted
replaced
1295:b090b216a832 | 1296:86079b930b3e |
---|---|
2186 * session if executed. Escape the filename to avoid nasty surprises. | 2186 * session if executed. Escape the filename to avoid nasty surprises. |
2187 */ | 2187 */ |
2188 escaped_filename = vim_strsave_escaped(filename, escape_chars); | 2188 escaped_filename = vim_strsave_escaped(filename, escape_chars); |
2189 if (escaped_filename == NULL) | 2189 if (escaped_filename == NULL) |
2190 return FALSE; | 2190 return FALSE; |
2191 mksession_cmdline = g_strconcat("mksession ", (char *)escaped_filename, NULL); | 2191 mksession_cmdline = g_strconcat("mksession ", (char *)escaped_filename, |
2192 NULL); | |
2192 vim_free(escaped_filename); | 2193 vim_free(escaped_filename); |
2194 | |
2193 /* | 2195 /* |
2194 * Use a reasonable hardcoded set of 'sessionoptions' flags to avoid | 2196 * Use a reasonable hardcoded set of 'sessionoptions' flags to avoid |
2195 * unpredictable effects when the session is saved automatically. Also, | 2197 * unpredictable effects when the session is saved automatically. Also, |
2196 * we definitely need SSOP_GLOBALS to be able to restore v:this_session. | 2198 * we definitely need SSOP_GLOBALS to be able to restore v:this_session. |
2197 * Don't use SSOP_BUFFERS to prevent the buffer list from becoming | 2199 * Don't use SSOP_BUFFERS to prevent the buffer list from becoming |
2198 * enormously large if the GNOME session feature is used regularly. | 2200 * enormously large if the GNOME session feature is used regularly. |
2199 */ | 2201 */ |
2200 save_ssop_flags = ssop_flags; | 2202 save_ssop_flags = ssop_flags; |
2201 ssop_flags = (SSOP_BLANK|SSOP_CURDIR|SSOP_FOLDS|SSOP_GLOBALS | 2203 ssop_flags = (SSOP_BLANK|SSOP_CURDIR|SSOP_FOLDS|SSOP_GLOBALS |
2202 |SSOP_HELP|SSOP_OPTIONS|SSOP_WINSIZE); | 2204 |SSOP_HELP|SSOP_OPTIONS|SSOP_WINSIZE|SSOP_TABPAGES); |
2203 | 2205 |
2204 do_cmdline_cmd((char_u *)"let Save_VV_this_session = v:this_session"); | 2206 do_cmdline_cmd((char_u *)"let Save_VV_this_session = v:this_session"); |
2205 failed = (do_cmdline_cmd((char_u *)mksession_cmdline) == FAIL); | 2207 failed = (do_cmdline_cmd((char_u *)mksession_cmdline) == FAIL); |
2206 do_cmdline_cmd((char_u *)"let v:this_session = Save_VV_this_session"); | 2208 do_cmdline_cmd((char_u *)"let v:this_session = Save_VV_this_session"); |
2207 do_unlet((char_u *)"Save_VV_this_session", TRUE); | 2209 do_unlet((char_u *)"Save_VV_this_session", TRUE); |