diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-17 21:04:34 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-17 21:04:34 +0200 |
commit | d23b714d8b9ed8e16ef553098acc6da0979e94fc (patch) | |
tree | f41d4d0132086a7114369a70cce3ad6d3ebc7292 /src/option.c | |
parent | 51e933261b984db014e858d79387a826d2626fb6 (diff) | |
download | vim-git-d23b714d8b9ed8e16ef553098acc6da0979e94fc.tar.gz |
patch 8.2.2778: problem restoring 'packpath' in sessionv8.2.2778
Problem: Problem restoring 'packpath' in session.
Solution: Let "skiprtp" also apply to 'packpath'.
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c index d7997b064..3c248c193 100644 --- a/src/option.c +++ b/src/option.c @@ -4615,7 +4615,8 @@ 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) + if ((opt_flags & OPT_SKIPRTP) && (p->var == (char_u *)&p_rtp + || p->var == (char_u *)&p_pp)) continue; round = 2; |