Mercurial > vim
comparison src/undo.c @ 2234:3b241fd8d7c0 vim73
updated for version 7.2.441
Problem: When using ":earlier" undo information may be wrong.
Solution: When changing alternate branches also adjust b_u_oldhead.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 30 May 2010 16:55:22 +0200 |
parents | 43cad213cb7f |
children | 4ba83ae8d505 |
comparison
equal
deleted
inserted
replaced
2233:43cad213cb7f | 2234:3b241fd8d7c0 |
---|---|
1916 last->uh_alt_prev->uh_alt_next = last->uh_alt_next; | 1916 last->uh_alt_prev->uh_alt_next = last->uh_alt_next; |
1917 last->uh_alt_prev = NULL; | 1917 last->uh_alt_prev = NULL; |
1918 last->uh_alt_next = uhp; | 1918 last->uh_alt_next = uhp; |
1919 uhp->uh_alt_prev = last; | 1919 uhp->uh_alt_prev = last; |
1920 | 1920 |
1921 if (curbuf->b_u_oldhead == uhp) | |
1922 curbuf->b_u_oldhead = last; | |
1921 uhp = last; | 1923 uhp = last; |
1922 if (uhp->uh_next != NULL) | 1924 if (uhp->uh_next != NULL) |
1923 uhp->uh_next->uh_prev = uhp; | 1925 uhp->uh_next->uh_prev = uhp; |
1924 } | 1926 } |
1925 curbuf->b_u_curhead = uhp; | 1927 curbuf->b_u_curhead = uhp; |