summaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-12-08 15:14:09 +0100
committerBram Moolenaar <Bram@vim.org>2011-12-08 15:14:09 +0100
commitae7ba984ee6913f36c58960eab2eb2c80538efc4 (patch)
tree7ff30a3cfd19b4a78c52702027b243f4a9e381ba /src/undo.c
parent0a11f8ce4e796e576a8008326d058de7f64fc6c8 (diff)
downloadvim-git-ae7ba984ee6913f36c58960eab2eb2c80538efc4.tar.gz
updated for version 7.3.367v7.3.367
Problem: :wundo and :rundo use a wrong checksum. Solution: Include the last line when computing the hash. (Christian Brabandt)
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c2
1 files changed, 1 insertions, 1 deletions
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));