diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-16 19:58:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-16 19:58:22 +0200 |
commit | 635bd60804966803490287e97460ecdc91d5fe0a (patch) | |
tree | fe8e75ace9e40b0e06f394e689296afe2b6042a7 /src/option.c | |
parent | aa1959bd5e82350bb4a82d9a5188c29d70706ec4 (diff) |
patch 8.2.2772: problems when restoring 'runtimepath' from a session filev8.2.2772
Problem: Problems when restoring 'runtimepath' from a session file.
Solution: Add the "skiprtp" item in 'sessionoptions'.
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index b9d7edbbb0..d7997b0646 100644 --- a/src/option.c +++ b/src/option.c @@ -4615,6 +4615,9 @@ 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) + continue; + round = 2; if (p->indir != PV_NONE) { |