diff src/ex_cmds2.c @ 12039:84066f043ab9 v8.0.0900

patch 8.0.0900: :tab options doesn't open a new tab page commit https://github.com/vim/vim/commit/ab6c8587ba846d08cd70e7b225c4952a468fc1e8 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 11 17:15:09 2017 +0200 patch 8.0.0900: :tab options doesn't open a new tab page Problem: :tab options doesn't open a new tab page. (Aviany) Solution: Support the :tab modifier. (closes https://github.com/vim/vim/issues/1960)
author Christian Brabandt <cb@256bit.org>
date Fri, 11 Aug 2017 17:30:04 +0200
parents bc0fee081e1e
children 59c1e09cf1a9
line wrap: on
line diff
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -3749,6 +3749,7 @@ ex_packadd(exarg_T *eap)
 ex_options(
     exarg_T	*eap UNUSED)
 {
+    vim_setenv((char_u *)"OPTWIN_CMD", (char_u *)(cmdmod.tab ? "tab" : ""));
     cmd_source((char_u *)SYS_OPTWIN_FILE, NULL);
 }
 #endif