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:
@@ -728,6 +728,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 */
|
||||||
|
/**/
|
||||||
|
835,
|
||||||
/**/
|
/**/
|
||||||
834,
|
834,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -729,8 +729,9 @@ main(argc, argv)
|
|||||||
if (c == EOF && ferror(fp))
|
if (c == EOF && ferror(fp))
|
||||||
die(2);
|
die(2);
|
||||||
|
|
||||||
if (p)
|
if (p && fputs("\n", fpo) == EOF)
|
||||||
if (fputs("\n};\n" + 3 * (fp == stdin), fpo) == EOF)
|
die(3);
|
||||||
|
if (fputs("};\n" + 3 * (fp == stdin), fpo) == EOF)
|
||||||
die(3);
|
die(3);
|
||||||
|
|
||||||
if (fp != stdin)
|
if (fp != stdin)
|
||||||
|
Reference in New Issue
Block a user