summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-11 22:27:50 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-11 22:27:50 +0200
commitda43b61dddcf81439a6f1716956a4e8d9046e68f (patch)
treec7433cdf21bc7e992efb60e5fda531140df395c6 /src/structs.h
parent8ed54007399f968aab447ae6cb46623b1bdbc75e (diff)
downloadvim-git-da43b61dddcf81439a6f1716956a4e8d9046e68f.tar.gz
patch 8.0.0910: cannot create a terminal in the current windowv8.0.0910
Problem: Cannot create a terminal in the current window. Solution: Add option "curwin" and ++curwin.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h
index 67b4a9b20..9e2bfa6ee 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1691,7 +1691,8 @@ struct channel_S {
#define JO2_TERM_ROWS 0x0040 /* "term_rows" */
#define JO2_TERM_COLS 0x0080 /* "term_cols" */
#define JO2_VERTICAL 0x0100 /* "vertical" */
-#define JO2_ALL 0x01FF
+#define JO2_CURWIN 0x0200 /* "curwin" */
+#define JO2_ALL 0x03FF
#define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE)
#define JO_CB_ALL \
@@ -1752,6 +1753,7 @@ typedef struct
int jo_term_rows;
int jo_term_cols;
int jo_vertical;
+ int jo_curwin;
char_u *jo_term_name;
int jo_term_finish;
#endif