0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.4.074

Problem:    When undo'ing all changes and creating a new change the undo
            structure is incorrect. (Christian Brabandt)
Solution:   When deleting the branch starting at the old header, delete the
            whole branch, not just the first entry.
This commit is contained in:
Bram Moolenaar
2013-11-07 03:04:11 +01:00
parent f5a2fd880a
commit aa88732efd
2 changed files with 4 additions and 1 deletions

View File

@@ -3121,7 +3121,8 @@ u_freebranch(buf, uhp, uhpp)
* all the pointers. */
if (uhp == buf->b_u_oldhead)
{
u_freeheader(buf, uhp, uhpp);
while (buf->b_u_oldhead != NULL)
u_freeheader(buf, buf->b_u_oldhead, uhpp);
return;
}