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:
@@ -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;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user