diff src/structs.h @ 12072:f4e1e1e6886b v8.0.0916

patch 8.0.0916: cannot specify properties of window for terminal open commit https://github.com/vim/vim/commit/37c45835945fc433a3bb85fcfc0b4fd58b1ee0e7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 12 16:01:04 2017 +0200 patch 8.0.0916: cannot specify properties of window for terminal open Problem: Cannot specify properties of window for when opening a window for a finished terminal job. Solution: Add "term_opencmd".
author Christian Brabandt <cb@256bit.org>
date Sat, 12 Aug 2017 16:15:04 +0200
parents 407a475c67fd
children 4b2bbbf81628
line wrap: on
line diff
--- a/src/structs.h
+++ b/src/structs.h
@@ -1693,7 +1693,8 @@ struct channel_S {
 #define JO2_VERTICAL	    0x0100	/* "vertical" */
 #define JO2_CURWIN	    0x0200	/* "curwin" */
 #define JO2_HIDDEN	    0x0400	/* "hidden" */
-#define JO2_ALL		    0x07FF
+#define JO2_TERM_OPENCMD    0x0800	/* "term_opencmd" */
+#define JO2_ALL		    0x0FFF
 
 #define JO_MODE_ALL	(JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE)
 #define JO_CB_ALL \
@@ -1757,6 +1758,7 @@ typedef struct
     int		jo_curwin;
     int		jo_hidden;
     char_u	*jo_term_name;
+    char_u	*jo_term_opencmd;
     int		jo_term_finish;
 #endif
 } jobopt_T;