Hirohito Higashi wrote:

> Hi Bram and Vimmers,
> 
> BufUnload event triggered twice, When :bunload with `bufhidden` set to 
> `unload` or `delete`.
> 
> How to reproduce:
> $ cat sample1.vim
> new
> set bufhidden=unload
> augroup mygroup
>     autocmd!
>     autocmd BufUnload <buffer> echo 'BufUnload'
>     autocmd BufDelete <buffer> echo 'BufDelete'
>     autocmd BufWipeout <buffer> echo 'BufWipeout'
> augroup END
> bunload
> 
> $ vim -Nu NONE -S sample1.vim
> 
> 
> Expected behavior:
> Following echoes displayed.
> BufUnload
> BufDelete
> 
> 
> Actual behavior:
> Following echoes displayed.
> BufUnload
> BufDelete
> BufUnload          <--- BufUnload triggered twice!!
> 
> 
> I wrote a patch and test.
> Please include attached one.

Thanks!

-- 
Any resemblance between the above views and those of my employer, my terminal,
or the view out my window are purely coincidental.  Any resemblance between
the above and my own views is non-deterministic.  The question of the
existence of views in the absence of anyone to hold them is left as an
exercise for the reader.  The question of the existence of the reader is left
as an exercise for the second god coefficient.  (A discussion of
non-orthogonal, non-integral polytheism is beyond the scope of this article.)
                                                (Ralph Jennings)

 /// Bram Moolenaar -- [email protected] -- 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui