diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-21 20:54:45 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-21 20:54:45 +0200 |
commit | e0b5949a3b28be9940bb8a46b2579e960100b83b (patch) | |
tree | be7ed16a7c64bda948727fc252ee67324cbd1f28 /src/ex_cmds2.c | |
parent | c79745a82faeb5a6058e915ca49a4c69fa60ea01 (diff) |
patch 8.1.1363: ":vert options" does not make a vertical splitv8.1.1363
Problem: ":vert options" does not make a vertical split.
Solution: Pass the right modifiers in $OPTWIN_CMD. (Ken Takata,
closes #4401)
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r-- | src/ex_cmds2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 18c438ce0c..bf6e551209 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -3016,7 +3016,9 @@ ex_packadd(exarg_T *eap) ex_options( exarg_T *eap UNUSED) { - vim_setenv((char_u *)"OPTWIN_CMD", (char_u *)(cmdmod.tab ? "tab" : "")); + vim_setenv((char_u *)"OPTWIN_CMD", + (char_u *)(cmdmod.tab ? "tab" + : (cmdmod.split & WSP_VERT) ? "vert" : "")); cmd_source((char_u *)SYS_OPTWIN_FILE, NULL); } #endif |