To: vim_dev@googlegroups.com Subject: Patch 8.0.1515 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1515 Problem: BufWinEnter event fired when opening hidden terminal. Solution: Do not fire BufWinEnter when the terminal is midden and does not open a window. (Kenta Sato, closes #2636) Files: src/terminal.c *** ../vim-8.0.1514/src/terminal.c 2018-02-11 14:53:25.905300346 +0100 --- src/terminal.c 2018-02-13 14:04:04.325701543 +0100 *************** *** 475,483 **** 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) --- 475,486 ---- channel_set_nonblock(term->tl_job->jv_channel, PART_IN); #ifdef FEAT_AUTOCMD ! if (!opt->jo_hidden) ! { ! ++curbuf->b_locked; ! apply_autocmds(EVENT_BUFWINENTER, NULL, NULL, FALSE, curbuf); ! --curbuf->b_locked; ! } #endif if (old_curbuf != NULL) *** ../vim-8.0.1514/src/version.c 2018-02-13 13:59:42.191667272 +0100 --- src/version.c 2018-02-13 14:06:22.056689845 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1515, /**/ -- -rwxr-xr-x 1 root 24 Oct 29 1929 /bin/ed -rwxr-xr-t 4 root 131720 Jan 1 1970 /usr/ucb/vi -rwxr-xr-x 1 root 5.89824e37 Oct 22 1990 /usr/bin/emacs /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///