]>
Commit | Line | Data |
---|---|---|
e98ed9b1 ER |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.1.155 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.1.155 | |
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. | |
13 | Files: src/undo.c | |
14 | ||
15 | ||
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 | |
18 | *************** | |
19 | *** 1677,1682 **** | |
20 | --- 1677,1690 ---- | |
21 | u_header_T **uhpp; /* if not NULL reset when freeing this header */ | |
22 | { | |
23 | u_header_T *tofree, *next; | |
24 | + | |
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) | |
28 | + { | |
29 | + u_freeheader(buf, uhp, uhpp); | |
30 | + return; | |
31 | + } | |
32 | ||
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 | |
37 | *************** | |
38 | *** 668,669 **** | |
39 | --- 668,671 ---- | |
40 | { /* Add new patch number below this line */ | |
41 | + /**/ | |
42 | + 155, | |
43 | /**/ | |
44 | ||
45 | -- | |
46 | I AM THANKFUL... | |
47 | ...for the piles of laundry and ironing because it means I | |
48 | have plenty of clothes to wear. | |
49 | ||
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 /// |