0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.0577: not all modifiers supported for :options

Problem:    Not all modifiers supported for :options.
Solution:   Use all cmdmod.split flags. (closes #4401)
This commit is contained in:
Bram Moolenaar
2020-04-13 21:16:21 +02:00
parent 067297e16a
commit 7a1637f4c0
6 changed files with 98 additions and 33 deletions

View File

@@ -967,9 +967,13 @@ ex_source(exarg_T *eap)
ex_options(
exarg_T *eap UNUSED)
{
vim_setenv((char_u *)"OPTWIN_CMD",
(char_u *)(cmdmod.tab ? "tab"
: (cmdmod.split & WSP_VERT) ? "vert" : ""));
char_u buf[500];
int multi_mods = 0;
buf[0] = NUL;
(void)add_win_cmd_modifers(buf, &multi_mods);
vim_setenv((char_u *)"OPTWIN_CMD", buf);
cmd_source((char_u *)SYS_OPTWIN_FILE, NULL);
}
#endif