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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user