bug related to patch 7.3.449 (Autocommands caused command to abort)

2012-05-24 Thread Alex Efros
Hi! 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

Re: bug related to patch 7.3.449 (Autocommands caused command to abort)

2012-05-24 Thread Christian Brabandt
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

Re: bug related to patch 7.3.449 (Autocommands caused command to abort)

2012-05-24 Thread James McCoy
On Thu, May 24, 2012 at 10:14:41PM +0200, Christian Brabandt wrote: > > Attached patch fixes this issue. > diff --git a/src/window.c b/src/window.c > --- a/src/window.c > +++ b/src/window.c > @@ -2104,6 +2104,38 @@ > #endif > } > > +int > +close_last_window_tabpage(win, free_buf, prev_curtab)

Re: bug related to patch 7.3.449 (Autocommands caused command to abort)

2012-05-24 Thread Christian Brabandt
On Fri, May 25, 2012 00:20, James McCoy wrote: > On Thu, May 24, 2012 at 10:14:41PM +0200, Christian Brabandt wrote: >> +/* >> + * When closing the last window in a tab page first go to another >> tab >> + * page and then close the window and the tab page. This avoids >> that >> +

Re: bug related to patch 7.3.449 (Autocommands caused command to abort)

2012-05-25 Thread Bram Moolenaar
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

Re: bug related to patch 7.3.449 (Autocommands caused command to abort)

2012-05-25 Thread Alex Efros
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 no

Re: bug related to patch 7.3.449 (Autocommands caused command to abort)

2012-05-25 Thread Christian Brabandt
Hi Alex! On Fr, 25 Mai 2012, Alex Efros wrote: > 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

Re: bug related to patch 7.3.449 (Autocommands caused command to abort)

2012-05-25 Thread Alex Efros
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

Re: bug related to patch 7.3.449 (Autocommands caused command to abort)

2012-05-26 Thread Christian Brabandt
Hi Alex! On Sa, 26 Mai 2012, Alex Efros wrote: > 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

Re: bug related to patch 7.3.449 (Autocommands caused command to abort)

2012-05-26 Thread Christian Brabandt
On Sa, 26 Mai 2012, Christian Brabandt wrote: > On Fr, 25 Mai 2012, Alex Efros wrote: > > 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(''), '&bt')) | > >