Karsten Hopp a83acf
To: vim-dev@vim.org
Karsten Hopp a83acf
Subject: Patch 7.2.298
Karsten Hopp a83acf
Fcc: outbox
Karsten Hopp a83acf
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp a83acf
Mime-Version: 1.0
Karsten Hopp a83acf
Content-Type: text/plain; charset=UTF-8
Karsten Hopp a83acf
Content-Transfer-Encoding: 8bit
Karsten Hopp a83acf
------------
Karsten Hopp a83acf
Karsten Hopp a83acf
Patch 7.2.298
Karsten Hopp a83acf
Problem:    ":vimgrep" crashes when there is an autocommand that sets a
Karsten Hopp a83acf
	    window-local variable.
Karsten Hopp a83acf
Solution:   Initialize the w: hashtab for re-use. (Yukihiro Nakadaira)
Karsten Hopp a83acf
Files:	    src/fileio.c
Karsten Hopp a83acf
Karsten Hopp a83acf
Karsten Hopp a83acf
*** ../vim-7.2.297/src/fileio.c	2009-11-17 12:08:48.000000000 +0100
Karsten Hopp a83acf
--- src/fileio.c	2009-11-17 13:22:06.000000000 +0100
Karsten Hopp a83acf
***************
Karsten Hopp a83acf
*** 8597,8602 ****
Karsten Hopp a83acf
--- 8605,8611 ----
Karsten Hopp a83acf
  	    curwin = firstwin;
Karsten Hopp a83acf
  # ifdef FEAT_EVAL
Karsten Hopp a83acf
  	vars_clear(&aucmd_win->w_vars.dv_hashtab);  /* free all w: variables */
Karsten Hopp a83acf
+ 	hash_init(&aucmd_win->w_vars.dv_hashtab);   /* re-use the hashtab */
Karsten Hopp a83acf
  # endif
Karsten Hopp a83acf
  #else
Karsten Hopp a83acf
  	curwin = aco->save_curwin;
Karsten Hopp a83acf
*** ../vim-7.2.297/src/version.c	2009-11-17 12:43:19.000000000 +0100
Karsten Hopp a83acf
--- src/version.c	2009-11-17 14:56:19.000000000 +0100
Karsten Hopp a83acf
***************
Karsten Hopp a83acf
*** 683,684 ****
Karsten Hopp a83acf
--- 683,686 ----
Karsten Hopp a83acf
  {   /* Add new patch number below this line */
Karsten Hopp a83acf
+ /**/
Karsten Hopp a83acf
+     298,
Karsten Hopp a83acf
  /**/
Karsten Hopp a83acf
Karsten Hopp a83acf
-- 
Karsten Hopp a83acf
Eye have a spelling checker, it came with my PC;
Karsten Hopp a83acf
It plainly marks four my revue mistakes I cannot sea.
Karsten Hopp a83acf
I've run this poem threw it, I'm sure your please to no,
Karsten Hopp a83acf
It's letter perfect in it's weigh, my checker tolled me sew!
Karsten Hopp a83acf
Karsten Hopp a83acf
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp a83acf
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp a83acf
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp a83acf
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///