comparison src/ex_cmds2.c @ 16722:19ca17f9e155 v8.1.1363

patch 8.1.1363: ":vert options" does not make a vertical split commit https://github.com/vim/vim/commit/e0b5949a3b28be9940bb8a46b2579e960100b83b Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 21 20:54:45 2019 +0200 patch 8.1.1363: ":vert options" does not make a vertical split Problem: ":vert options" does not make a vertical split. Solution: Pass the right modifiers in $OPTWIN_CMD. (Ken Takata, closes #4401)
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 May 2019 21:00:07 +0200
parents a1ba0bd74e7d
children b52ea9c5f1db
comparison
equal deleted inserted replaced
16721:1e81d008be84 16722:19ca17f9e155
3014 */ 3014 */
3015 void 3015 void
3016 ex_options( 3016 ex_options(
3017 exarg_T *eap UNUSED) 3017 exarg_T *eap UNUSED)
3018 { 3018 {
3019 vim_setenv((char_u *)"OPTWIN_CMD", (char_u *)(cmdmod.tab ? "tab" : "")); 3019 vim_setenv((char_u *)"OPTWIN_CMD",
3020 (char_u *)(cmdmod.tab ? "tab"
3021 : (cmdmod.split & WSP_VERT) ? "vert" : ""));
3020 cmd_source((char_u *)SYS_OPTWIN_FILE, NULL); 3022 cmd_source((char_u *)SYS_OPTWIN_FILE, NULL);
3021 } 3023 }
3022 #endif 3024 #endif
3023 3025
3024 #if defined(FEAT_PYTHON3) || defined(FEAT_PYTHON) || defined(PROTO) 3026 #if defined(FEAT_PYTHON3) || defined(FEAT_PYTHON) || defined(PROTO)