1
0
forked from aniani/vim

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'.
This commit is contained in:
Bram Moolenaar
2021-04-16 19:58:22 +02:00
parent aa1959bd5e
commit 635bd60804
8 changed files with 46 additions and 3 deletions

View File

@@ -1224,9 +1224,17 @@ ex_mkrc(exarg_T *eap)
if (!view_session
|| (eap->cmdidx == CMD_mksession
&& (*flagp & SSOP_OPTIONS)))
#endif
{
int flags = OPT_GLOBAL;
#ifdef FEAT_SESSION
if (eap->cmdidx == CMD_mksession && (*flagp & SSOP_SKIP_RTP))
flags |= OPT_SKIPRTP;
#endif
failed |= (makemap(fd, NULL) == FAIL
|| makeset(fd, OPT_GLOBAL, FALSE) == FAIL);
|| makeset(fd, flags, FALSE) == FAIL);
}
#ifdef FEAT_SESSION
if (!failed && view_session)