OH NO I FLATTENED THE CODE A BIT, WANNA FIGHT ME?
This commit is contained in:
parent
bd5268cd62
commit
011f5e89b7
1 changed files with 14 additions and 16 deletions
4
main.c
4
main.c
|
@ -113,8 +113,7 @@ static ssize_t dump_line(off_t offset, void *buf, size_t len, int tty) {
|
||||||
if (zx_putchar(c) < 0) {
|
if (zx_putchar(c) < 0) {
|
||||||
goto error_io;
|
goto error_io;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (c >= 0xa0 && c <= 0xbf) {
|
||||||
if (c >= 0xa0 && c <= 0xbf) {
|
|
||||||
if (tty && printf("\033[7m") < 0) {
|
if (tty && printf("\033[7m") < 0) {
|
||||||
goto error_io;
|
goto error_io;
|
||||||
}
|
}
|
||||||
|
@ -132,7 +131,6 @@ static ssize_t dump_line(off_t offset, void *buf, size_t len, int tty) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (putchar('\n') < 0) {
|
if (putchar('\n') < 0) {
|
||||||
goto error_io;
|
goto error_io;
|
||||||
|
|
Loading…
Add table
Reference in a new issue