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.
This commit is contained in:
Bram Moolenaar
2010-05-30 16:55:22 +02:00
parent 6773b2ba7e
commit 8f1f629d85

View File

@ -1918,6 +1918,8 @@ undo_time(step, sec, absolute)
last->uh_alt_next = uhp;
uhp->uh_alt_prev = last;
if (curbuf->b_u_oldhead == uhp)
curbuf->b_u_oldhead = last;
uhp = last;
if (uhp->uh_next != NULL)
uhp->uh_next->uh_prev = uhp;