diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-22 15:41:34 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-22 17:32:24 -0400 |
commit | 59d550345d2531b1b1058a82ae4e4de6a941f8ad (patch) | |
tree | d0243b0e0a21550151510a30d0a4052c7f453af8 /src | |
parent | 8415615b593c6673083a5004d5db9e8af4914726 (diff) | |
download | rneovim-59d550345d2531b1b1058a82ae4e4de6a941f8ad.tar.gz rneovim-59d550345d2531b1b1058a82ae4e4de6a941f8ad.tar.bz2 rneovim-59d550345d2531b1b1058a82ae4e4de6a941f8ad.zip |
vim-patch:8.2.2778: problem restoring 'packpath' in session
Problem: Problem restoring 'packpath' in session.
Solution: Let "skiprtp" also apply to 'packpath'.
https://github.com/vim/vim/commit/d23b714d8b9ed8e16ef553098acc6da0979e94fc
Port Test_mksession_skiprtp() to lua functional test.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/option.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index b33571ccc2..1454af1a73 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -5232,7 +5232,8 @@ int makeset(FILE *fd, int opt_flags, int local_only) 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; } |