3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.074
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.074
3ef2ca
Problem:    When undo'ing all changes and creating a new change the undo
3ef2ca
            structure is incorrect. (Christian Brabandt)
3ef2ca
Solution:   When deleting the branch starting at the old header, delete the
3ef2ca
            whole branch, not just the first entry.
3ef2ca
Files:      src/undo.c
3ef2ca
    
3ef2ca
3ef2ca
*** ../vim-7.4.073/src/undo.c	2013-11-06 05:26:08.000000000 +0100
3ef2ca
--- src/undo.c	2013-11-07 03:01:42.000000000 +0100
3ef2ca
***************
3ef2ca
*** 3121,3127 ****
3ef2ca
       * all the pointers. */
3ef2ca
      if (uhp == buf->b_u_oldhead)
3ef2ca
      {
3ef2ca
! 	u_freeheader(buf, uhp, uhpp);
3ef2ca
  	return;
3ef2ca
      }
3ef2ca
  
3ef2ca
--- 3121,3128 ----
3ef2ca
       * all the pointers. */
3ef2ca
      if (uhp == buf->b_u_oldhead)
3ef2ca
      {
3ef2ca
! 	while (buf->b_u_oldhead != NULL)
3ef2ca
! 	    u_freeheader(buf, buf->b_u_oldhead, uhpp);
3ef2ca
  	return;
3ef2ca
      }
3ef2ca
  
3ef2ca
*** ../vim-7.4.073/src/version.c	2013-11-06 05:26:08.000000000 +0100
3ef2ca
--- src/version.c	2013-11-07 03:03:02.000000000 +0100
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     74,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
LETTERS TO THE EDITOR (The Times of London)
3ef2ca
3ef2ca
Dear Sir,
3ef2ca
3ef2ca
I am firmly opposed to the spread of microchips either to the home or
3ef2ca
to the office.  We have more than enough of them foisted upon us in
3ef2ca
public places.  They are a disgusting Americanism, and can only result
3ef2ca
in the farmers being forced to grow smaller potatoes, which in turn
3ef2ca
will cause massive unemployment in the already severely depressed
3ef2ca
agricultural industry.
3ef2ca
3ef2ca
Yours faithfully,
3ef2ca
        Capt. Quinton D'Arcy, J. P.
3ef2ca
        Sevenoaks
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///