Hi!
On Thu, May 24, 2012 at 10:14:41PM +0200, Christian Brabandt wrote:
> I have noticed something similar in my NrrwRgn plugin.
> I am not sure, this is a bug, because at the time you issue :q the
> location list ist still open and in case another window is open, :q does
> not exit Vim.
I'm not really understood what you mean, sorry.
I can see reason for 'E855: Autocommands caused command to abort'
when something bad happens in a loop, for example like this:
:autocmd BufWinLeave * lclose
when it run with open location-list and result in calling :lclose
again while executing BufWinLeave as result of :lclose.
But I don't see any reason why E855 happens using this:
$ vi -u /dev/null --noplugin
:autocmd BufWinLeave * if empty(getbufvar(0+expand('<abuf>'), '&bt')) |
lclose | endif
:lexpr system('echo :1:some')
:lopen
:wincmd p
:q
E855: Autocommands caused command to abort
So, is this a bug or not?
> > This happens on 7.3.515. Versions before 7.3.449 behave differently
> > without tabs, but with tabs they all crash.
>
> Attached patch fixes this issue.
Thanks! But, sorry, I just found another simple way to crash 7.3.530
without tabs:
$ vi -u /dev/null --noplugin
:autocmd BufWinLeave * if empty(getbufvar(0+expand('<abuf>'), '&bt')) |
lclose | endif
:lexpr system('echo :1:some')
:lopen
:wincmd p
:bd
Vim: Caught deadly signal SEGV
Segmentation fault
:-/
--
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