diff options
author | B. Watson <urchlay@slackware.uk> | 2024-12-24 05:20:08 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-12-24 05:20:08 -0500 |
commit | 5c130e94e4366d38c6553e008973057a3ef9c8e5 (patch) | |
tree | f697d2294e9cd46b8f98bf267a62545d3c76dc45 /uxd.c | |
parent | 390fb81cdf9a622fab5f1757b249ddf0b2796d88 (diff) | |
download | uxd-5c130e94e4366d38c6553e008973057a3ef9c8e5.tar.gz |
fix -a opt, if multibyte char spans dump lines
Diffstat (limited to 'uxd.c')
-rw-r--r-- | uxd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -546,6 +546,8 @@ void append_right(char *str) { void append_left(unsigned char byte, int dash, int hl_type) { char tmpbuf[100]; + if(byte & 0x80) line_all_ascii = 0; + if(!dump_column) sprintf(left_buf, hex_addr_fmt, filepos + display_offset); @@ -750,8 +752,6 @@ int dump_utf8_char(void) { bad = 1; } - if(bad || cont_count) line_all_ascii = 0; - /* read and validate the continuation bytes, if any */ for(i = 0; i < cont_count; i++) { int cb; |