patch 8.0.1742: cannot get a list of all the jobs
Problem: Cannot get a list of all the jobs. Cannot get the command of
the job.
Solution: When job_info() is called without an argument return a list of
jobs. Otherwise, include the command that the job is running.
(Yegappan Lakshmanan)
diff --git a/src/structs.h b/src/structs.h
index 35433b1..55dd1fe 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -271,10 +271,10 @@
# define w_p_scl w_onebuf_opt.wo_scl /* 'signcolumn' */
#endif
#ifdef FEAT_TERMINAL
- char_u *wo_tk;
-#define w_p_tk w_onebuf_opt.wo_tk /* 'termkey' */
- char_u *wo_tms;
-#define w_p_tms w_onebuf_opt.wo_tms /* 'termsize' */
+ char_u *wo_twk;
+# define w_p_twk w_onebuf_opt.wo_twk /* 'termwinkey' */
+ char_u *wo_tws;
+# define w_p_tws w_onebuf_opt.wo_tws /* 'termwinsize' */
#endif
#ifdef FEAT_EVAL
@@ -1488,6 +1488,7 @@
int jv_copyID;
channel_T *jv_channel; /* channel for I/O, reference counted */
+ char_u **argv; /* command line used to start the job */
};
/*
@@ -2262,6 +2263,9 @@
#ifdef FEAT_LISP
char_u *b_p_lw; /* 'lispwords' local value */
#endif
+#ifdef FEAT_TERMINAL
+ long b_p_twsl; /* 'termwinscroll' */
+#endif
/* end of buffer options */