Christian Brabandt wrote:
> Hi Alex!
>
> On Do, 24 Mai 2012, Alex Efros wrote:
>
> > I've discover this bug when trying to ':wq' in file with syntax errors using
> > syntastic plugin with
> > let g:syntastic_auto_loc_list=1
> > Instead of exiting from vim no matter there are syntax errors I got either
> > E855: Autocommands caused command to abort
> > or vim segfault.
> >
> >
> > To reproduce this bug it's enough to:
> >
> > $ vi -u /dev/null --noplugin
> > :autocmd BufWinLeave * if empty(&bt) | lclose | endif
> > :lexpr system('echo :1:some')
> > :lopen
> > :wincmd p
> > :q
> > (location list closes; got message E855: Autocommands caused command to
> > abort; vim doesn't exit)
> > :q
> > (now vim exit)
>
> 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.
>
> > Or, with tabs and segfault:
> >
> > $ vi -u /dev/null --noplugin
> > :autocmd BufWinLeave * if empty(&bt) | lclose | endif
> > :tabnew
> > :lexpr system('echo :1:some')
> > :lopen
> > :wincmd p
> > :q
> > Vim: Caught deadly signal SEGV
> > Vim: Finished.
> > Segmentation fault
> >
> > 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.
Great, thanks.
We can make the method static, since it's only used in window.c
--
Every engineer dreams about saving the universe and having sex with aliens.
This is much more glamorous than the real life of an engineer, which consists
of hiding from the universe and having sex without the participation of other
life forms. (Scott Adams - The Dilbert principle)
/// 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