4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Crash when 'undolevels' is 0 and repeating "udd". (James Vega)
12 Solution: When there is only one branch use u_freeheader() to delete it.
16 *** ../vim-7.1.154/src/undo.c Mon Oct 1 22:53:27 2007
17 --- src/undo.c Sat Nov 10 13:45:28 2007
21 u_header_T **uhpp; /* if not NULL reset when freeing this header */
23 u_header_T *tofree, *next;
25 + /* If this is the top branch we may need to use u_freeheader() to update
26 + * all the pointers. */
27 + if (uhp == buf->b_u_oldhead)
29 + u_freeheader(buf, uhp, uhpp);
33 if (uhp->uh_alt_prev != NULL)
34 uhp->uh_alt_prev->uh_alt_next = NULL;
35 *** ../vim-7.1.154/src/version.c Thu Nov 8 21:23:34 2007
36 --- src/version.c Sat Nov 10 22:49:40 2007
40 { /* Add new patch number below this line */
47 ...for the piles of laundry and ironing because it means I
48 have plenty of clothes to wear.
50 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
51 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
52 \\\ download, build and distribute -- http://www.A-A-P.org ///
53 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///