0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2011-12-08 15:14:09 +01:00
parent 0a11f8ce4e
commit ae7ba984ee
2 changed files with 3 additions and 1 deletions

View 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));