diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-12-01 05:03:41 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-12-01 05:03:41 +0100 |
commit | 1cb069aa8bc0eeb17a747174026de2f032c57d17 (patch) | |
tree | fdccc666d409ca64b5c63eddfb61f5853d6614b6 | |
parent | 9489358c926cd3eef4cfeb704a164e74d44caa3b (diff) | |
download | hex-1cb069aa8bc0eeb17a747174026de2f032c57d17.tar.gz hex-1cb069aa8bc0eeb17a747174026de2f032c57d17.tar.xz hex-1cb069aa8bc0eeb17a747174026de2f032c57d17.zip |
Fix second nibbles in the hex dump
Welp.
-rw-r--r-- | hex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -568,7 +568,7 @@ app_make_row (struct row_buffer *buf, int64_t addr, int attrs) // TODO: leave it up to the user to decide what should be colored uint8_t cell = g_ctx.data[cell_addr - g_ctx.data_offset]; row_buffer_append (buf, - (char[3]) { hexa[cell >> 4], hexa[cell & 7], 0 }, + (char[3]) { hexa[cell >> 4], hexa[cell & 0xf], 0 }, attrs | highlight); char s[2] = { (cell >= 32 && cell < 127) ? cell : '.', 0 }; |