From: Bram Moolenaar Date: Fri, 22 Sep 2017 09:13:52 +0000 (+0200) Subject: Missing part of 8.0.1131. X-Git-Tag: v8.0.1133~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b21de33bb288738c1445bc7241d3d5106124d66;p=vim Missing part of 8.0.1131. --- diff --git a/src/terminal.c b/src/terminal.c index 0cdb43ab2..9b5e4ce36 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -448,6 +448,12 @@ term_start(typval_T *argvar, jobopt_T *opt, int forceit) * a deadlock if the job is waiting for Vim to read. */ channel_set_nonblock(term->tl_job->jv_channel, PART_IN); +#ifdef FEAT_AUTOCMD + ++curbuf->b_locked; + apply_autocmds(EVENT_BUFWINENTER, NULL, NULL, FALSE, curbuf); + --curbuf->b_locked; +#endif + if (old_curbuf != NULL) { --curbuf->b_nwindows;