Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
24475:96905804bf5a | 24476:e79d1475fc89 |
---|---|
4613 // Global values are only written when not at the default value. | 4613 // Global values are only written when not at the default value. |
4614 varp = get_varp_scope(p, opt_flags); | 4614 varp = get_varp_scope(p, opt_flags); |
4615 if ((opt_flags & OPT_GLOBAL) && optval_default(p, varp, p_cp)) | 4615 if ((opt_flags & OPT_GLOBAL) && optval_default(p, varp, p_cp)) |
4616 continue; | 4616 continue; |
4617 | 4617 |
4618 if ((opt_flags & OPT_SKIPRTP) && p->var == (char_u *)&p_rtp) | 4618 if ((opt_flags & OPT_SKIPRTP) && (p->var == (char_u *)&p_rtp |
4619 || p->var == (char_u *)&p_pp)) | |
4619 continue; | 4620 continue; |
4620 | 4621 |
4621 round = 2; | 4622 round = 2; |
4622 if (p->indir != PV_NONE) | 4623 if (p->indir != PV_NONE) |
4623 { | 4624 { |