home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.1 / 7.1.155 < prev    next >
Encoding:
Internet Message Format  |  2007-11-19  |  1.6 KB

  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. +     /* If this is the top branch we may need to use u_freeheader() to update
  25. +      * all the pointers. */
  26. +     if (uhp == buf->b_u_oldhead)
  27. +     {
  28. +     u_freeheader(buf, uhp, uhpp);
  29. +     return;
  30. +     }
  31.   
  32.       if (uhp->uh_alt_prev != NULL)
  33.       uhp->uh_alt_prev->uh_alt_next = NULL;
  34. *** ../vim-7.1.154/src/version.c    Thu Nov  8 21:23:34 2007
  35. --- src/version.c    Sat Nov 10 22:49:40 2007
  36. ***************
  37. *** 668,669 ****
  38. --- 668,671 ----
  39.   {   /* Add new patch number below this line */
  40. + /**/
  41. +     155,
  42.   /**/
  43.  
  44. -- 
  45. I AM THANKFUL...
  46. ...for the piles of laundry and ironing because it means I
  47. have plenty of clothes to wear.
  48.  
  49.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  50. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  51. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  52.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  53.