Fix off-by-one error processing the line after an empty line when the
-a option is not specified. Submitted by: schweikh MFC after: 1 week
This commit is contained in:
parent
b0eca2c865
commit
26cabd19d5
@ -176,6 +176,7 @@ tabify(void)
|
||||
} else if (ch == '\n') {
|
||||
putchar('\n');
|
||||
doneline = ocol = dcol = 0;
|
||||
continue;
|
||||
} else if (ch != ' ' || dcol > limit) {
|
||||
putchar(ch);
|
||||
if (isprint(ch))
|
||||
|
Loading…
x
Reference in New Issue
Block a user