lkundrak / rpms / vim

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