0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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

@@ -4615,6 +4615,9 @@ makeset(FILE *fd, int opt_flags, int local_only)
if ((opt_flags & OPT_GLOBAL) && optval_default(p, varp, p_cp))
continue;
if ((opt_flags & OPT_SKIPRTP) && p->var == (char_u *)&p_rtp)
continue;
round = 2;
if (p->indir != PV_NONE)
{