diff src/structs.h @ 13435:fa198b71bab2 v8.0.1592

patch 8.0.1592: terminal windows in a session are not properly restored commit https://github.com/vim/vim/commit/4d8bac8bf593ff087517ff79090c2d224325aae6 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 9 21:33:34 2018 +0100 patch 8.0.1592: terminal windows in a session are not properly restored Problem: Terminal windows in a session are not properly restored. Solution: Add "terminal" in 'sessionoptions'. When possible restore the command running in a terminal.
author Christian Brabandt <cb@256bit.org>
date Fri, 09 Mar 2018 21:45:06 +0100
parents 19f9b74a424e
children 33eea5ce5415
line wrap: on
line diff
--- 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;