changeset 12509:1fd4594eb74a

Missing part of 8.0.1131. commit https://github.com/vim/vim/commit/8b21de33bb288738c1445bc7241d3d5106124d66 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 22 11:13:52 2017 +0200 Missing part of 8.0.1131.
author Christian Brabandt <cb@256bit.org>
date Fri, 22 Sep 2017 11:15:04 +0200
parents b2ea213e5e30
children 7a887dccd13a
files src/terminal.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -448,6 +448,12 @@ term_start(typval_T *argvar, jobopt_T *o
 	 * 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;