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'.
diff --git a/src/option.c b/src/option.c
index b9d7edb..d7997b0 100644
--- a/src/option.c
+++ b/src/option.c
@@ -4615,6 +4615,9 @@
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)
{