Mercurial > vim
comparison src/option.c @ 24464:a56f9c2ba51c v8.2.2772
patch 8.2.2772: problems when restoring 'runtimepath' from a session file
Commit: https://github.com/vim/vim/commit/635bd60804966803490287e97460ecdc91d5fe0a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 16 19:58:22 2021 +0200
patch 8.2.2772: problems when restoring 'runtimepath' from a session file
Problem: Problems when restoring 'runtimepath' from a session file.
Solution: Add the "skiprtp" item in 'sessionoptions'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 16 Apr 2021 20:00:05 +0200 |
parents | a9ff8368d35f |
children | e79d1475fc89 |
comparison
equal
deleted
inserted
replaced
24463:754a22f6d5bc | 24464:a56f9c2ba51c |
---|---|
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) | |
4619 continue; | |
4620 | |
4618 round = 2; | 4621 round = 2; |
4619 if (p->indir != PV_NONE) | 4622 if (p->indir != PV_NONE) |
4620 { | 4623 { |
4621 if (p->var == VAR_WIN) | 4624 if (p->var == VAR_WIN) |
4622 { | 4625 { |