Commits

Anonymous committed 972bd3f

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)

Comments (0)

Files changed (2)

     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));
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    367,
+/**/
     366,
 /**/
     365,