diff options
-rw-r--r-- | main.c | 30 |
1 files changed, 14 insertions, 16 deletions
@@ -113,23 +113,21 @@ 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) { + if (tty && printf("\033[7m") < 0) { + goto error_io; + } + + if (zx_putchar(c - 0xa0) < 0) { + goto error_io; + } + + if (tty && printf("\033[27m") < 0) { + goto error_io; + } } else { - if (c >= 0xa0 && c <= 0xbf) { - if (tty && printf("\033[7m") < 0) { - goto error_io; - } - - if (zx_putchar(c - 0xa0) < 0) { - goto error_io; - } - - if (tty && printf("\033[27m") < 0) { - goto error_io; - } - } else { - if (putchar('.') < 0) { - goto error_io; - } + if (putchar('.') < 0) { + goto error_io; } } } |