mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.3523: duplicated code in xxd
Problem: Duplicated code in xxd. Solution: Remove duplicated lines. (closes #8972)
This commit is contained in:
parent
93ff6720fe
commit
c89c91cafd
@ -757,6 +757,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 */
|
||||||
|
/**/
|
||||||
|
3523,
|
||||||
/**/
|
/**/
|
||||||
3522,
|
3522,
|
||||||
/**/
|
/**/
|
||||||
|
@ -346,16 +346,12 @@ huntype(
|
|||||||
n1 = -1;
|
n1 = -1;
|
||||||
if ((++p >= cols) && !hextype)
|
if ((++p >= cols) && !hextype)
|
||||||
{
|
{
|
||||||
/* skip rest of line as garbage */
|
/* skip the rest of the line as garbage */
|
||||||
want_off = 0;
|
n2 = -1;
|
||||||
while ((c = getc(fpi)) != '\n' && c != EOF)
|
n3 = -1;
|
||||||
;
|
|
||||||
if (c == EOF && ferror(fpi))
|
|
||||||
die(2);
|
|
||||||
ign_garb = 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (n1 < 0 && n2 < 0 && n3 < 0)
|
if (n1 < 0 && n2 < 0 && n3 < 0)
|
||||||
{
|
{
|
||||||
/* already stumbled into garbage, skip line, wait and see */
|
/* already stumbled into garbage, skip line, wait and see */
|
||||||
if (!hextype)
|
if (!hextype)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user