mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 07:41:27 +00:00
vim-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'.
635bd60804
Allow "terminal" value for sessionoptions even if it's no-opt
because patch v8.0.1592 is not ported yet.
Omit vim9 test, Test_mksession_skiprtp().
This commit is contained in:
@@ -937,8 +937,13 @@ void ex_mkrc(exarg_T *eap)
|
||||
|
||||
if (!view_session || (eap->cmdidx == CMD_mksession
|
||||
&& (*flagp & SSOP_OPTIONS))) {
|
||||
int flags = OPT_GLOBAL;
|
||||
|
||||
if (eap->cmdidx == CMD_mksession && (*flagp & SSOP_SKIP_RTP)) {
|
||||
flags |= OPT_SKIPRTP;
|
||||
}
|
||||
failed |= (makemap(fd, NULL) == FAIL
|
||||
|| makeset(fd, OPT_GLOBAL, false) == FAIL);
|
||||
|| makeset(fd, flags, false) == FAIL);
|
||||
}
|
||||
|
||||
if (!failed && view_session) {
|
||||
|
||||
Reference in New Issue
Block a user