Hi!

On Sat, May 26, 2012 at 07:59:41AM +0200, Christian Brabandt wrote:
> I don't think so, but Bram has the final saying. I would certainly find 
> it unexpected, if this would quit my vim. The error is simply telling 
> you, that an autocommand closed a window/buffer and that's why Vim 
> aborts executing the :q command.

That still doesn't make sense to me. If autocommand closed some
window/buffer then current command should be aborted? Why is that?

Is there any way to work around this in BufWinLeave autocommand?

(I've work around this by moving logic to close orphan location-list
on BufEnter into that location-list, but that's ugly because it's
complicated to detect is that location-list have/have not related source
file opened, while on source file's BufWinLeave it's enough to :lclose.)

As for 'unexpected', for me it's much more unexpected to get location-list
window opened full screen after you've closed source file related to that
location-list…

-- 
                        WBR, Alex.

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

Raspunde prin e-mail lui