From: Bram Moolenaar Date: Sun, 30 May 2010 14:55:22 +0000 (+0200) Subject: updated for version 7.2.441 X-Git-Tag: v7.3~338 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f1f629d853d8c4de8bacf69fda769ce791fadb2;p=thirdparty%2Fvim.git 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. --- diff --git a/src/undo.c b/src/undo.c index 7f1aa8ad87..cb51c996c2 100644 --- a/src/undo.c +++ b/src/undo.c @@ -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;