summaryrefslogtreecommitdiffstats
path: root/src/hex
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-07-15 15:37:59 +0200
committerCanop <cano.petrole@gmail.com>2020-07-15 15:37:59 +0200
commit96497a8f3e248aaf493114bb446f9da5760b87c4 (patch)
treef757a9c5fe1d78cc0c6c7918496257dda9cda58c /src/hex
parentd198f840c44118bc7e9af0bd03c2db9bcb1d699f (diff)
fix bad rendering on chars not being one col wide
Fix #255
Diffstat (limited to 'src/hex')
-rw-r--r--src/hex/hex_view.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hex/hex_view.rs b/src/hex/hex_view.rs
index c4c8525..1f0c7e8 100644
--- a/src/hex/hex_view.rs
+++ b/src/hex/hex_view.rs
@@ -138,9 +138,9 @@ impl HexView {
if let Some(b) = line.bytes.get(x) {
let byte = Byte::from(*b);
if inter_hex {
- cw.queue_string(byte.style(styles), format!("{:02x} ", b))?;
+ cw.queue_g_string(byte.style(styles), format!("{:02x} ", b))?;
} else {
- cw.queue_string(byte.style(styles), format!("{:02x}", b))?;
+ cw.queue_g_string(byte.style(styles), format!("{:02x}", b))?;
}
} else {
cw.queue_str(&styles.default, if inter_hex { " " } else { " " })?;