summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-03-09 21:33:34 +0100
committerBram Moolenaar <Bram@vim.org>2018-03-09 21:33:34 +0100
commit4d8bac8bf593ff087517ff79090c2d224325aae6 (patch)
tree51e277a9012731df3a3dc362af5c5db39991485a /src/structs.h
parent20586cb4f4d516a60b96cc02a94b810fea8b8cdb (diff)
patch 8.0.1592: terminal windows in a session are not properly restoredv8.0.1592
Problem: Terminal windows in a session are not properly restored. Solution: Add "terminal" in 'sessionoptions'. When possible restore the command running in a terminal.
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 7dc732c9cd..d6959bc4bd 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1706,7 +1706,8 @@ struct channel_S {
#define JO2_HIDDEN 0x0400 /* "hidden" */
#define JO2_TERM_OPENCMD 0x0800 /* "term_opencmd" */
#define JO2_EOF_CHARS 0x1000 /* "eof_chars" */
-#define JO2_ALL 0x1FFF
+#define JO2_NORESTORE 0x2000 /* "norestore" */
+#define JO2_ALL 0x2FFF
#define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE)
#define JO_CB_ALL \
@@ -1769,6 +1770,7 @@ typedef struct
int jo_vertical;
int jo_curwin;
int jo_hidden;
+ int jo_term_norestore;
char_u *jo_term_name;
char_u *jo_term_opencmd;
int jo_term_finish;