patch 7.4.1982
Problem: Viminfo file contains duplicate change marks.
Solution: Drop duplicate marks.
diff --git a/src/mark.c b/src/mark.c
index 264124f..2e8fdd6 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -1859,7 +1859,12 @@
#ifdef FEAT_JUMPLIST
/* changelist positions are stored oldest first */
for (i = 0; i < buf->b_changelistlen; ++i)
- write_one_mark(fp_out, '+', &buf->b_changelist[i]);
+ {
+ /* skip duplicates */
+ if (i == 0 || !equalpos(buf->b_changelist[i - 1],
+ buf->b_changelist[i]))
+ write_one_mark(fp_out, '+', &buf->b_changelist[i]);
+ }
#endif
for (i = 0; i < NMARKS; i++)
write_one_mark(fp_out, 'a' + i, &buf->b_namedm[i]);
diff --git a/src/version.c b/src/version.c
index f8b6fff..8d9995a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1982,
+/**/
1981,
/**/
1980,