# HG changeset patch # User Christian Brabandt # Date 1467492305 -7200 # Node ID 80333fcbaddfd5102de0ff81ea1f0c58b5a2b18e # Parent f3e9d167b0f98d671ebc003721e62ad8cd7bd3eb commit https://github.com/vim/vim/commit/dec85cf75044ed94f611c825a7a0b0050a2597b9 Author: Bram Moolenaar Date: Sat Jul 2 22:33:46 2016 +0200 patch 7.4.1987 Problem: When copying unrecognized lines for viminfo, end up with useless continuation lines. Solution: Skip continuation lines. diff --git a/src/ex_cmds.c b/src/ex_cmds.c --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -2834,13 +2834,23 @@ write_viminfo_barlines(vir_T *virp, FILE { int i; garray_T *gap = &virp->vir_barlines; + int seen_useful = FALSE; + char *line; if (gap->ga_len > 0) { fputs(_("\n# Bar lines, copied verbatim:\n"), fp_out); + /* Skip over continuation lines until seeing a useful line. */ for (i = 0; i < gap->ga_len; ++i) - fputs(((char **)(gap->ga_data))[i], fp_out); + { + line = ((char **)(gap->ga_data))[i]; + if (seen_useful || line[1] != '<') + { + fputs(line, fp_out); + seen_useful = TRUE; + } + } } } #endif /* FEAT_VIMINFO */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -759,6 +759,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1987, +/**/ 1986, /**/ 1985,