Mercurial > vim
comparison src/session.c @ 24464:a56f9c2ba51c v8.2.2772
patch 8.2.2772: problems when restoring 'runtimepath' from a session file
Commit: https://github.com/vim/vim/commit/635bd60804966803490287e97460ecdc91d5fe0a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 16 19:58:22 2021 +0200
patch 8.2.2772: problems when restoring 'runtimepath' from a session file
Problem: Problems when restoring 'runtimepath' from a session file.
Solution: Add the "skiprtp" item in 'sessionoptions'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 16 Apr 2021 20:00:05 +0200 |
parents | 3b5d499c2bb5 |
children | b2484fa6cb02 |
comparison
equal
deleted
inserted
replaced
24463:754a22f6d5bc | 24464:a56f9c2ba51c |
---|---|
1223 #ifdef FEAT_SESSION | 1223 #ifdef FEAT_SESSION |
1224 if (!view_session | 1224 if (!view_session |
1225 || (eap->cmdidx == CMD_mksession | 1225 || (eap->cmdidx == CMD_mksession |
1226 && (*flagp & SSOP_OPTIONS))) | 1226 && (*flagp & SSOP_OPTIONS))) |
1227 #endif | 1227 #endif |
1228 { | |
1229 int flags = OPT_GLOBAL; | |
1230 | |
1231 #ifdef FEAT_SESSION | |
1232 if (eap->cmdidx == CMD_mksession && (*flagp & SSOP_SKIP_RTP)) | |
1233 flags |= OPT_SKIPRTP; | |
1234 #endif | |
1228 failed |= (makemap(fd, NULL) == FAIL | 1235 failed |= (makemap(fd, NULL) == FAIL |
1229 || makeset(fd, OPT_GLOBAL, FALSE) == FAIL); | 1236 || makeset(fd, flags, FALSE) == FAIL); |
1237 } | |
1230 | 1238 |
1231 #ifdef FEAT_SESSION | 1239 #ifdef FEAT_SESSION |
1232 if (!failed && view_session) | 1240 if (!failed && view_session) |
1233 { | 1241 { |
1234 if (put_line(fd, "let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1") == FAIL) | 1242 if (put_line(fd, "let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1") == FAIL) |