summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-05 14:50:12 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-05 14:50:12 +0200
commit78712a7733839598fbc4a61d0582893d22e8adf3 (patch)
tree5948c59b752fe2bf8e2d06c26030f3fd06f0e71e /src/structs.h
parent69198197fd4b061be7cadcf441cd8a7246a17148 (diff)
downloadvim-git-78712a7733839598fbc4a61d0582893d22e8adf3.tar.gz
patch 8.0.0864: cannot specify the name of a terminalv8.0.0864
Problem: Cannot specify the name of a terminal. Solution: Add the "term_name" option. (Yasuhiro Matsumoto, closes #1936)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/structs.h b/src/structs.h
index 522e15a98..83c55a932 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1656,7 +1656,7 @@ struct channel_S {
#define JO_CALLBACK 0x0010 /* channel callback */
#define JO_OUT_CALLBACK 0x0020 /* stdout callback */
#define JO_ERR_CALLBACK 0x0040 /* stderr callback */
-#define JO_CLOSE_CALLBACK 0x0080 /* close callback */
+#define JO_CLOSE_CALLBACK 0x0080 /* "close_cb" */
#define JO_WAITTIME 0x0100 /* only for ch_open() */
#define JO_TIMEOUT 0x0200 /* all timeouts */
#define JO_OUT_TIMEOUT 0x0400 /* stdout timeouts */
@@ -1684,7 +1684,8 @@ struct channel_S {
#define JO2_OUT_MSG 0x0001 /* "out_msg" */
#define JO2_ERR_MSG 0x0002 /* "err_msg" (JO_OUT_ << 1) */
-#define JO2_ALL 0x0003
+#define JO2_TERM_NAME 0x0004 /* "term_name" */
+#define JO2_ALL 0x0007
#define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE)
#define JO_CB_ALL \
@@ -1741,6 +1742,7 @@ typedef struct
/* when non-zero run the job in a terminal window of this size */
int jo_term_rows;
int jo_term_cols;
+ char_u *jo_term_name;
#endif
} jobopt_T;