mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -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:
@@ -719,7 +719,7 @@ u_compute_hash(hash)
|
|||||||
char_u *p;
|
char_u *p;
|
||||||
|
|
||||||
sha256_start(&ctx);
|
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);
|
p = ml_get(lnum);
|
||||||
sha256_update(&ctx, p, (UINT32_T)(STRLEN(p) + 1));
|
sha256_update(&ctx, p, (UINT32_T)(STRLEN(p) + 1));
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
367,
|
||||||
/**/
|
/**/
|
||||||
366,
|
366,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user