patch 8.0.0910: cannot create a terminal in the current window
Problem: Cannot create a terminal in the current window.
Solution: Add option "curwin" and ++curwin.
diff --git a/src/structs.h b/src/structs.h
index 67b4a9b..9e2bfa6 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1691,7 +1691,8 @@
#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 @@
int jo_term_rows;
int jo_term_cols;
int jo_vertical;
+ int jo_curwin;
char_u *jo_term_name;
int jo_term_finish;
#endif