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 -- b...@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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui