commit | ae7ba984ee6913f36c58960eab2eb2c80538efc4 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Dec 08 15:14:09 2011 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Dec 08 15:14:09 2011 +0100 |
tree | 7ff30a3cfd19b4a78c52702027b243f4a9e381ba | |
parent | 0a11f8ce4e796e576a8008326d058de7f64fc6c8 [diff] [blame] |
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)
diff --git a/src/undo.c b/src/undo.c index 998f3f3..d01ca9b 100644 --- a/src/undo.c +++ b/src/undo.c
@@ -719,7 +719,7 @@ 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));