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