vim-patch:8.2.2778: problem restoring 'packpath' in session

Problem:    Problem restoring 'packpath' in session.
Solution:   Let "skiprtp" also apply to 'packpath'.
d23b714d8b

Port Test_mksession_skiprtp() to lua functional test.
This commit is contained in:
Jan Edmund Lazo
2021-05-22 15:41:34 -04:00
parent 8415615b59
commit 59d550345d
3 changed files with 45 additions and 2 deletions

View File

@@ -5232,7 +5232,8 @@ int makeset(FILE *fd, int opt_flags, int local_only)
continue;
}
if ((opt_flags & OPT_SKIPRTP) && p->var == (char_u *)&p_rtp) {
if ((opt_flags & OPT_SKIPRTP)
&& (p->var == (char_u *)&p_rtp || p->var == (char_u *)&p_pp)) {
continue;
}