Karsten Hopp 3ebe39
To: vim-dev@vim.org
Karsten Hopp 3ebe39
Subject: patch 7.1.004
Karsten Hopp 3ebe39
Fcc: outbox
Karsten Hopp 3ebe39
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 3ebe39
Mime-Version: 1.0
Karsten Hopp 3ebe39
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 3ebe39
Content-Transfer-Encoding: 8bit
Karsten Hopp 3ebe39
------------
Karsten Hopp 3ebe39
Karsten Hopp 3ebe39
Patch 7.1.004
Karsten Hopp 3ebe39
Problem:    Crash when doing ":next directory". (Raphael Finkel)
Karsten Hopp 3ebe39
Solution:   Do not use "buf", it may be invalid after autocommands.
Karsten Hopp 3ebe39
Files:	    src/ex_cmds.c
Karsten Hopp 3ebe39
Karsten Hopp 3ebe39
Karsten Hopp 3ebe39
*** ../vim-7.1.003/src/ex_cmds.c	Thu May 10 21:24:24 2007
Karsten Hopp 3ebe39
--- src/ex_cmds.c	Mon Jun 18 22:03:56 2007
Karsten Hopp 3ebe39
***************
Karsten Hopp 3ebe39
*** 3367,3373 ****
Karsten Hopp 3ebe39
  		 * was in this window (or another window).  If not used
Karsten Hopp 3ebe39
  		 * before, reset the local window options to the global
Karsten Hopp 3ebe39
  		 * values.  Also restores old folding stuff. */
Karsten Hopp 3ebe39
! 		get_winopts(buf);
Karsten Hopp 3ebe39
  #ifdef FEAT_SPELL
Karsten Hopp 3ebe39
  		did_get_winopts = TRUE;
Karsten Hopp 3ebe39
  #endif
Karsten Hopp 3ebe39
--- 3367,3373 ----
Karsten Hopp 3ebe39
  		 * was in this window (or another window).  If not used
Karsten Hopp 3ebe39
  		 * before, reset the local window options to the global
Karsten Hopp 3ebe39
  		 * values.  Also restores old folding stuff. */
Karsten Hopp 3ebe39
! 		get_winopts(curbuf);
Karsten Hopp 3ebe39
  #ifdef FEAT_SPELL
Karsten Hopp 3ebe39
  		did_get_winopts = TRUE;
Karsten Hopp 3ebe39
  #endif
Karsten Hopp 3ebe39
***************
Karsten Hopp 3ebe39
*** 3649,3656 ****
Karsten Hopp 3ebe39
  #ifdef FEAT_SPELL
Karsten Hopp 3ebe39
      /* If the window options were changed may need to set the spell language.
Karsten Hopp 3ebe39
       * Can only do this after the buffer has been properly setup. */
Karsten Hopp 3ebe39
!     if (did_get_winopts && curwin->w_p_spell && *buf->b_p_spl != NUL)
Karsten Hopp 3ebe39
! 	did_set_spelllang(buf);
Karsten Hopp 3ebe39
  #endif
Karsten Hopp 3ebe39
  
Karsten Hopp 3ebe39
      if (command == NULL)
Karsten Hopp 3ebe39
--- 3649,3656 ----
Karsten Hopp 3ebe39
  #ifdef FEAT_SPELL
Karsten Hopp 3ebe39
      /* If the window options were changed may need to set the spell language.
Karsten Hopp 3ebe39
       * Can only do this after the buffer has been properly setup. */
Karsten Hopp 3ebe39
!     if (did_get_winopts && curwin->w_p_spell && *curbuf->b_p_spl != NUL)
Karsten Hopp 3ebe39
! 	did_set_spelllang(curbuf);
Karsten Hopp 3ebe39
  #endif
Karsten Hopp 3ebe39
  
Karsten Hopp 3ebe39
      if (command == NULL)
Karsten Hopp 3ebe39
*** ../vim-7.1.003/src/version.c	Tue Jun 19 10:09:15 2007
Karsten Hopp 3ebe39
--- src/version.c	Tue Jun 19 11:53:34 2007
Karsten Hopp 3ebe39
***************
Karsten Hopp 3ebe39
*** 668,669 ****
Karsten Hopp 3ebe39
--- 668,671 ----
Karsten Hopp 3ebe39
  {   /* Add new patch number below this line */
Karsten Hopp 3ebe39
+ /**/
Karsten Hopp 3ebe39
+     4,
Karsten Hopp 3ebe39
  /**/
Karsten Hopp 3ebe39
Karsten Hopp 3ebe39
-- 
Karsten Hopp 3ebe39
FIRST HEAD:  Oh! quick! get the sword out I want to cut his head off.
Karsten Hopp 3ebe39
THIRD HEAD:  Oh, cut your own head off.
Karsten Hopp 3ebe39
SECOND HEAD: Yes - do us all a favour.
Karsten Hopp 3ebe39
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 3ebe39
Karsten Hopp 3ebe39
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 3ebe39
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 3ebe39
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 3ebe39
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///