int nwindows;
bufref_T bufref;
# ifdef FEAT_WINDOWS
- int is_curwin = (curwin!= NULL && curwin->w_buffer == buf);
+ int is_curwin = (curwin != NULL && curwin->w_buffer == buf);
win_T *the_curwin = curwin;
tabpage_T *the_curtab = curtab;
# endif
#ifdef FEAT_AUTOCMD
if (!apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf)
# ifdef FEAT_EVAL
- || (bufref_valid(&bufref) && !aborting()))
+ || (bufref_valid(&bufref) && !aborting())
# else
- || bufref_valid(&bufref))
+ || bufref_valid(&bufref)
# endif
+ )
#endif
{
#ifdef FEAT_SYN_HL
#if defined(MESSAGE_QUEUE) || defined(PROTO)
/*
* Process messages that have been queued for netbeans or clientserver.
+ * Also check if any jobs have ended.
* These functions can call arbitrary vimscript and should only be called when
* it is safe to do so.
*/
return NULL;
}
+/*
+ * Send a (deadly) signal to "job".
+ * Return FAIL if "how" is not a valid name.
+ */
int
mch_stop_job(job_T *job, char_u *how)
{