diff options
author | vimboss <devnull@localhost> | 2007-11-10 21:51:15 +0000 |
---|---|---|
committer | vimboss <devnull@localhost> | 2007-11-10 21:51:15 +0000 |
commit | 5c52fd5bf37cfd8e98379f90f03d1a63fa970440 (patch) | |
tree | de2bb8079ebb7733d84265b8cff08124e53f441e | |
parent | 08f0192aa91fd92ae6f321cd6c07e5fc33c93ab5 (diff) | |
download | vim-5c52fd5bf37cfd8e98379f90f03d1a63fa970440.tar.gz |
-rw-r--r-- | src/undo.c | 8 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 10 insertions, 0 deletions
@@ -1678,6 +1678,14 @@ u_freebranch(buf, uhp, uhpp) { u_header_T *tofree, *next; + /* If this is the top branch we may need to use u_freeheader() to update + * all the pointers. */ + if (uhp == buf->b_u_oldhead) + { + u_freeheader(buf, uhp, uhpp); + return; + } + if (uhp->uh_alt_prev != NULL) uhp->uh_alt_prev->uh_alt_next = NULL; diff --git a/src/version.c b/src/version.c index fde9d207..436e4850 100644 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 155, +/**/ 154, /**/ 153, |