OH NO I FLATTENED THE CODE A BIT, WANNA FIGHT ME?

This commit is contained in:
XANTRONIX Development 2023-09-10 23:42:26 -04:00
parent bd5268cd62
commit 011f5e89b7

4
main.c
View file

@ -113,8 +113,7 @@ static ssize_t dump_line(off_t offset, void *buf, size_t len, int tty) {
if (zx_putchar(c) < 0) {
goto error_io;
}
} else {
if (c >= 0xa0 && c <= 0xbf) {
} else if (c >= 0xa0 && c <= 0xbf) {
if (tty && printf("\033[7m") < 0) {
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) {
goto error_io;