mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -04:00
patch 7.4.1982
Problem: Viminfo file contains duplicate change marks. Solution: Drop duplicate marks.
This commit is contained in:
parent
ee2615af64
commit
951fa1819a
@ -1859,7 +1859,12 @@ write_viminfo_marks(FILE *fp_out)
|
|||||||
#ifdef FEAT_JUMPLIST
|
#ifdef FEAT_JUMPLIST
|
||||||
/* changelist positions are stored oldest first */
|
/* changelist positions are stored oldest first */
|
||||||
for (i = 0; i < buf->b_changelistlen; ++i)
|
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
|
#endif
|
||||||
for (i = 0; i < NMARKS; i++)
|
for (i = 0; i < NMARKS; i++)
|
||||||
write_one_mark(fp_out, 'a' + i, &buf->b_namedm[i]);
|
write_one_mark(fp_out, 'a' + i, &buf->b_namedm[i]);
|
||||||
|
@ -758,6 +758,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 */
|
||||||
|
/**/
|
||||||
|
1982,
|
||||||
/**/
|
/**/
|
||||||
1981,
|
1981,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user