Karsten Hopp 82d202
To: vim_dev@googlegroups.com
Karsten Hopp 82d202
Subject: Patch 7.3.642
Karsten Hopp 82d202
Fcc: outbox
Karsten Hopp 82d202
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 82d202
Mime-Version: 1.0
Karsten Hopp 82d202
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 82d202
Content-Transfer-Encoding: 8bit
Karsten Hopp 82d202
------------
Karsten Hopp 82d202
Karsten Hopp 82d202
Patch 7.3.642
Karsten Hopp 82d202
Problem:    Segfault with specific autocommands.  Was OK after 7.3.449 and
Karsten Hopp 82d202
	    before 7.3.545. (Richard Brown)
Karsten Hopp 82d202
Solution:   Pass TRUE for abort_if_last in the call to close_buffer().
Karsten Hopp 82d202
	    (Christian Brabandt)
Karsten Hopp 82d202
Files:	    src/window.c
Karsten Hopp 82d202
Karsten Hopp 82d202
Karsten Hopp 82d202
*** ../vim-7.3.641/src/window.c	2012-07-19 18:05:40.000000000 +0200
Karsten Hopp 82d202
--- src/window.c	2012-08-29 15:42:15.000000000 +0200
Karsten Hopp 82d202
***************
Karsten Hopp 82d202
*** 2269,2275 ****
Karsten Hopp 82d202
  #ifdef FEAT_AUTOCMD
Karsten Hopp 82d202
  	win->w_closing = TRUE;
Karsten Hopp 82d202
  #endif
Karsten Hopp 82d202
! 	close_buffer(win, win->w_buffer, free_buf ? DOBUF_UNLOAD : 0, FALSE);
Karsten Hopp 82d202
  #ifdef FEAT_AUTOCMD
Karsten Hopp 82d202
  	if (win_valid(win))
Karsten Hopp 82d202
  	    win->w_closing = FALSE;
Karsten Hopp 82d202
--- 2269,2275 ----
Karsten Hopp 82d202
  #ifdef FEAT_AUTOCMD
Karsten Hopp 82d202
  	win->w_closing = TRUE;
Karsten Hopp 82d202
  #endif
Karsten Hopp 82d202
! 	close_buffer(win, win->w_buffer, free_buf ? DOBUF_UNLOAD : 0, TRUE);
Karsten Hopp 82d202
  #ifdef FEAT_AUTOCMD
Karsten Hopp 82d202
  	if (win_valid(win))
Karsten Hopp 82d202
  	    win->w_closing = FALSE;
Karsten Hopp 82d202
*** ../vim-7.3.641/src/version.c	2012-08-29 15:22:14.000000000 +0200
Karsten Hopp 82d202
--- src/version.c	2012-08-29 15:49:52.000000000 +0200
Karsten Hopp 82d202
***************
Karsten Hopp 82d202
*** 721,722 ****
Karsten Hopp 82d202
--- 721,724 ----
Karsten Hopp 82d202
  {   /* Add new patch number below this line */
Karsten Hopp 82d202
+ /**/
Karsten Hopp 82d202
+     642,
Karsten Hopp 82d202
  /**/
Karsten Hopp 82d202
Karsten Hopp 82d202
-- 
Karsten Hopp 82d202
The psychic said, "God bless you."  I said, "I didn't sneeze."  She
Karsten Hopp 82d202
looked deep into my eyes and said, "You will, eventually."  And, damn
Karsten Hopp 82d202
if she wasn't right.  Two days later, I sneezed.  --Ellen Degeneres
Karsten Hopp 82d202
Karsten Hopp 82d202
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 82d202
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 82d202
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 82d202
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///