diff options
-rw-r--r-- | src/terminal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c index 0cdb43ab23..9b5e4ce363 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; |