diff src/option.c @ 24476:e79d1475fc89 v8.2.2778

patch 8.2.2778: problem restoring 'packpath' in session Commit: https://github.com/vim/vim/commit/d23b714d8b9ed8e16ef553098acc6da0979e94fc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 17 21:04:34 2021 +0200 patch 8.2.2778: problem restoring 'packpath' in session Problem: Problem restoring 'packpath' in session. Solution: Let "skiprtp" also apply to 'packpath'.
author Bram Moolenaar <Bram@vim.org>
date Sat, 17 Apr 2021 21:15:03 +0200
parents a56f9c2ba51c
children cb4cb3ff5736
line wrap: on
line diff
--- a/src/option.c
+++ b/src/option.c
@@ -4615,7 +4615,8 @@ makeset(FILE *fd, int opt_flags, int loc
 	    if ((opt_flags & OPT_GLOBAL) && optval_default(p, varp, p_cp))
 		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;
 
 	    round = 2;