diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-22 11:13:52 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-22 11:13:52 +0200 |
commit | 8b21de33bb288738c1445bc7241d3d5106124d66 (patch) | |
tree | ad8c34bf2095cc3dde2552ae2785d0f9cb1199ec /src | |
parent | fc7649f8b82efbb4c7066567dd69192d97a2749f (diff) |
Missing part of 8.0.1131.
Diffstat (limited to 'src')
-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; |