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