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