To reproduce:
gvim --noplugin -c "edit aaa|vsplit bbb|let b:foo='blabla'|wincmd l|autocmd 
BufWinLeave bbb echo b:foo"

then if you execute ":verbose qa" command from 'aaa' buffer the following 
output will be printed:
Error detected while processing BufWinLeave Auto commands for "bbb":
E121: Undefined variable: b:foo
E15: Invalid expression: b:foo

But the same command executed from 'bbb' buffer works fine.

If you run qa in debug mode you can see that 'echo b:foo' is called for 'aaa' 
buffer.

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