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