|
Karsten Hopp |
8387bf |
To: vim-dev@vim.org
|
|
Karsten Hopp |
8387bf |
Subject: Patch 7.1.155
|
|
Karsten Hopp |
8387bf |
Fcc: outbox
|
|
Karsten Hopp |
8387bf |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
8387bf |
Mime-Version: 1.0
|
|
Karsten Hopp |
8387bf |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
8387bf |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
8387bf |
------------
|
|
Karsten Hopp |
8387bf |
|
|
Karsten Hopp |
8387bf |
Patch 7.1.155
|
|
Karsten Hopp |
8387bf |
Problem: Crash when 'undolevels' is 0 and repeating "udd". (James Vega)
|
|
Karsten Hopp |
8387bf |
Solution: When there is only one branch use u_freeheader() to delete it.
|
|
Karsten Hopp |
8387bf |
Files: src/undo.c
|
|
Karsten Hopp |
8387bf |
|
|
Karsten Hopp |
8387bf |
|
|
Karsten Hopp |
8387bf |
*** ../vim-7.1.154/src/undo.c Mon Oct 1 22:53:27 2007
|
|
Karsten Hopp |
8387bf |
--- src/undo.c Sat Nov 10 13:45:28 2007
|
|
Karsten Hopp |
8387bf |
***************
|
|
Karsten Hopp |
8387bf |
*** 1677,1682 ****
|
|
Karsten Hopp |
8387bf |
--- 1677,1690 ----
|
|
Karsten Hopp |
8387bf |
u_header_T **uhpp; /* if not NULL reset when freeing this header */
|
|
Karsten Hopp |
8387bf |
{
|
|
Karsten Hopp |
8387bf |
u_header_T *tofree, *next;
|
|
Karsten Hopp |
8387bf |
+
|
|
Karsten Hopp |
8387bf |
+ /* If this is the top branch we may need to use u_freeheader() to update
|
|
Karsten Hopp |
8387bf |
+ * all the pointers. */
|
|
Karsten Hopp |
8387bf |
+ if (uhp == buf->b_u_oldhead)
|
|
Karsten Hopp |
8387bf |
+ {
|
|
Karsten Hopp |
8387bf |
+ u_freeheader(buf, uhp, uhpp);
|
|
Karsten Hopp |
8387bf |
+ return;
|
|
Karsten Hopp |
8387bf |
+ }
|
|
Karsten Hopp |
8387bf |
|
|
Karsten Hopp |
8387bf |
if (uhp->uh_alt_prev != NULL)
|
|
Karsten Hopp |
8387bf |
uhp->uh_alt_prev->uh_alt_next = NULL;
|
|
Karsten Hopp |
8387bf |
*** ../vim-7.1.154/src/version.c Thu Nov 8 21:23:34 2007
|
|
Karsten Hopp |
8387bf |
--- src/version.c Sat Nov 10 22:49:40 2007
|
|
Karsten Hopp |
8387bf |
***************
|
|
Karsten Hopp |
8387bf |
*** 668,669 ****
|
|
Karsten Hopp |
8387bf |
--- 668,671 ----
|
|
Karsten Hopp |
8387bf |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
8387bf |
+ /**/
|
|
Karsten Hopp |
8387bf |
+ 155,
|
|
Karsten Hopp |
8387bf |
/**/
|
|
Karsten Hopp |
8387bf |
|
|
Karsten Hopp |
8387bf |
--
|
|
Karsten Hopp |
8387bf |
I AM THANKFUL...
|
|
Karsten Hopp |
8387bf |
...for the piles of laundry and ironing because it means I
|
|
Karsten Hopp |
8387bf |
have plenty of clothes to wear.
|
|
Karsten Hopp |
8387bf |
|
|
Karsten Hopp |
8387bf |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
8387bf |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
8387bf |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
8387bf |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|