How to reproduce:

gvim -u NONE

create 1 or more additional windows

:au QuitPre * echo 'QuitPre:' . expand('<abuf>')
:au BufWinLeave * echo 'BufWinLeave:' . expand('<abuf>')
:au BufUnload * echo 'BufUnload:' . expand('<abuf>')
:au BufDelete * echo 'BufDelete:' . expand('<abuf>')

:$q! on the 1st window

then echoes:

QuitPre:<buffer of the 1st window> (current buffer)
BufWinLeave:<buffer of the last window> (affected buffer)
BufUnload:<buffer of the last window> (affected buffer)
BufDelete:<buffer of the last window> (affected buffer)

<abuf> shows a different buffer between QuitPre and other events
but needs to show the same buffer.

It is reproducable on 8.0.2 and 8.0.1203.

-- 
-- 
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