0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1380

Problem:    The job exit callback is not implemented.
Solution:   Add the "exit-cb" option.
This commit is contained in:
Bram Moolenaar
2016-02-21 19:14:41 +01:00
parent b7522a2f0c
commit ee1cffc07a
8 changed files with 147 additions and 15 deletions

View File

@@ -1265,6 +1265,7 @@ struct jobvar_S
#endif
jobstatus_T jv_status;
char_u *jv_stoponexit; /* allocated */
char_u *jv_exit_cb; /* allocated */
int jv_refcount; /* reference count */
channel_T *jv_channel; /* channel for I/O, reference counted */
@@ -1390,6 +1391,7 @@ struct channel_S {
#define JO_PART 0x0800 /* "part" */
#define JO_ID 0x1000 /* "id" */
#define JO_STOPONEXIT 0x2000 /* "stoponexit" */
#define JO_EXIT_CB 0x4000 /* "exit-cb" */
#define JO_ALL 0xffffff
#define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE)
@@ -1418,6 +1420,8 @@ typedef struct
int jo_id;
char_u jo_soe_buf[NUMBUFLEN];
char_u *jo_stoponexit;
char_u jo_ecb_buf[NUMBUFLEN];
char_u *jo_exit_cb;
} jobopt_T;