diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-13 21:16:21 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-13 21:16:21 +0200 |
commit | 7a1637f4c00ac3d0cbf894803ada1586a1717470 (patch) | |
tree | 34aca94057f424f8fbe5a437c66b23f2fd189647 /src/scriptfile.c | |
parent | 067297e16a516838dbc46aaa9d8b1a507afec28d (diff) |
patch 8.2.0577: not all modifiers supported for :optionsv8.2.0577
Problem: Not all modifiers supported for :options.
Solution: Use all cmdmod.split flags. (closes #4401)
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r-- | src/scriptfile.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c index a7af4e95bf..3b7652d1fb 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -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 |