1
0
forked from aniani/vim

updated for version 7.3.835

Problem:    "xxd -i" fails on an empty file.
Solution:   Do output the closing } for an empty file. (partly by Lawrence
            Woodman)
This commit is contained in:
Bram Moolenaar
2013-02-26 14:14:07 +01:00
parent 886ed691d2
commit 53eb37e9f9
2 changed files with 6 additions and 3 deletions

View File

@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
835,
/**/
834,
/**/

View File

@@ -729,9 +729,10 @@ main(argc, argv)
if (c == EOF && ferror(fp))
die(2);
if (p)
if (fputs("\n};\n" + 3 * (fp == stdin), fpo) == EOF)
die(3);
if (p && fputs("\n", fpo) == EOF)
die(3);
if (fputs("};\n" + 3 * (fp == stdin), fpo) == EOF)
die(3);
if (fp != stdin)
{