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:
@@ -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
|
||||
|
Reference in New Issue
Block a user