From 9098fc813488171d5c5e187bdc256bd2a220884c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Ubavi=C4=87?= <53820106+ubavic@users.noreply.github.com> Date: Sat, 8 Jul 2023 15:01:41 +0200 Subject: [PATCH] Fix incorrect hex value of 127 (DEL) and typo --- src/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/draw.c b/src/draw.c index 6d74fde..1e19892 100644 --- a/src/draw.c +++ b/src/draw.c @@ -124,7 +124,7 @@ static void printhistory(numberstack* numbers, int priority) { static void display_ascii_hex(uint64_t value, int priority) { // ASCII not enabled, just display HEX - // Or ASCII out of rante + // Or ASCII out of range if ((hex_enabled && !ascii_enabled) || value > 127) { mvwprintw_colors(displaywin, priority, 2, COLOR_PAIR_HEX, "Hex: 0x%llX", value); return; @@ -154,7 +154,7 @@ static void display_ascii_hex(uint64_t value, int priority) { } // Display DEL (Dec: 127) else if (value == 127) { - mvwprintw_colors(displaywin, priority, 2, COLOR_PAIR_HEX, "Hex: 0x%llX ASCII: DEL"); + mvwprintw_colors(displaywin, priority, 2, COLOR_PAIR_HEX, "Hex: 0x7F ASCII: DEL"); } else { // Display printable characters