]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.367 v7.3.367
authorBram Moolenaar <Bram@vim.org>
Thu, 8 Dec 2011 14:14:09 +0000 (15:14 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 8 Dec 2011 14:14:09 +0000 (15:14 +0100)
Problem:    :wundo and :rundo use a wrong checksum.
Solution:   Include the last line when computing the hash. (Christian Brabandt)

src/undo.c
src/version.c

index 998f3f3ae134e31ed85d503b7e9c7e2798ee4db3..d01ca9b85f5fb007a061c097636236bb05b26063 100644 (file)
@@ -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));
index ec69cb198cac07c01173b38e37e0ed3baea91e18..55dba1e0a59cade1df77da924e8c9b4c8ceb682f 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    367,
 /**/
     366,
 /**/