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