Karsten Hopp 954b0f
To: vim_dev@googlegroups.com
Karsten Hopp 954b0f
Subject: Patch 7.3.718
Karsten Hopp 954b0f
Fcc: outbox
Karsten Hopp 954b0f
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 954b0f
Mime-Version: 1.0
Karsten Hopp 954b0f
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 954b0f
Content-Transfer-Encoding: 8bit
Karsten Hopp 954b0f
------------
Karsten Hopp 954b0f
Karsten Hopp 954b0f
Patch 7.3.718
Karsten Hopp 954b0f
Problem:    When re-using the current buffer the buffer-local options stay.
Karsten Hopp 954b0f
Solution:   Re-initialize the buffer-local options. (Christian Brabandt)
Karsten Hopp 954b0f
Files:	    src/buffer.c
Karsten Hopp 954b0f
Karsten Hopp 954b0f
Karsten Hopp 954b0f
*** ../vim-7.3.717/src/buffer.c	2012-10-03 18:24:55.000000000 +0200
Karsten Hopp 954b0f
--- src/buffer.c	2012-11-17 14:11:35.000000000 +0100
Karsten Hopp 954b0f
***************
Karsten Hopp 954b0f
*** 1702,1707 ****
Karsten Hopp 954b0f
--- 1702,1712 ----
Karsten Hopp 954b0f
  #endif
Karsten Hopp 954b0f
  	/* buf->b_nwindows = 0; why was this here? */
Karsten Hopp 954b0f
  	free_buffer_stuff(buf, FALSE);	/* delete local variables et al. */
Karsten Hopp 954b0f
+ 
Karsten Hopp 954b0f
+ 	/* Init the options. */
Karsten Hopp 954b0f
+ 	buf->b_p_initialized = FALSE;
Karsten Hopp 954b0f
+ 	buf_copy_options(buf, BCO_ENTER);
Karsten Hopp 954b0f
+ 
Karsten Hopp 954b0f
  #ifdef FEAT_KEYMAP
Karsten Hopp 954b0f
  	/* need to reload lmaps and set b:keymap_name */
Karsten Hopp 954b0f
  	curbuf->b_kmap_state |= KEYMAP_INIT;
Karsten Hopp 954b0f
*** ../vim-7.3.717/src/version.c	2012-11-20 12:03:02.000000000 +0100
Karsten Hopp 954b0f
--- src/version.c	2012-11-20 12:16:35.000000000 +0100
Karsten Hopp 954b0f
***************
Karsten Hopp 954b0f
*** 727,728 ****
Karsten Hopp 954b0f
--- 727,730 ----
Karsten Hopp 954b0f
  {   /* Add new patch number below this line */
Karsten Hopp 954b0f
+ /**/
Karsten Hopp 954b0f
+     718,
Karsten Hopp 954b0f
  /**/
Karsten Hopp 954b0f
Karsten Hopp 954b0f
-- 
Karsten Hopp 954b0f
Latest survey shows that 3 out of 4 people make up 75% of the
Karsten Hopp 954b0f
world's population.
Karsten Hopp 954b0f
Karsten Hopp 954b0f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 954b0f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 954b0f
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 954b0f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///