mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 7.4.1931
Problem: Using both old and new style file mark lines from viminfo. Solution: Skip the old style lines if the viminfo file was written with a Vim version that supports the new style.
This commit is contained in:
parent
bf2c0ee0b2
commit
a641e1d4da
@ -2310,7 +2310,11 @@ read_viminfo_up_to_marks(
|
|||||||
break;
|
break;
|
||||||
case '-':
|
case '-':
|
||||||
case '\'':
|
case '\'':
|
||||||
eof = read_viminfo_filemark(virp, forceit);
|
/* When file marks are in bar lines skip the old style lines. */
|
||||||
|
if (virp->vir_version < VIMINFO_VERSION_WITH_MARKS)
|
||||||
|
eof = read_viminfo_filemark(virp, forceit);
|
||||||
|
else
|
||||||
|
eof = viminfo_readline(virp);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (viminfo_error("E575: ", _("Illegal starting char"),
|
if (viminfo_error("E575: ", _("Illegal starting char"),
|
||||||
|
@ -753,6 +753,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 */
|
||||||
|
/**/
|
||||||
|
1931,
|
||||||
/**/
|
/**/
|
||||||
1930,
|
1930,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user