From ae7ba984ee6913f36c58960eab2eb2c80538efc4 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 8 Dec 2011 15:14:09 +0100 Subject: [PATCH] updated for version 7.3.367 Problem: :wundo and :rundo use a wrong checksum. Solution: Include the last line when computing the hash. (Christian Brabandt) --- src/undo.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/undo.c b/src/undo.c index 998f3f3ae..d01ca9b85 100644 --- a/src/undo.c +++ b/src/undo.c @@ -719,7 +719,7 @@ u_compute_hash(hash) char_u *p; sha256_start(&ctx); - for (lnum = 1; lnum < curbuf->b_ml.ml_line_count; ++lnum) + for (lnum = 1; lnum <= curbuf->b_ml.ml_line_count; ++lnum) { p = ml_get(lnum); sha256_update(&ctx, p, (UINT32_T)(STRLEN(p) + 1)); diff --git a/src/version.c b/src/version.c index ec69cb198..55dba1e0a 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 367, /**/ 366, /**/ -- 2.50.1