From 0f1d72149e679ad99d069c9a3c836f56bb7dea31 Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Sat, 7 Mar 2020 18:05:22 +0100 Subject: [PATCH] fix hexdump offset being off by one line --- over/misc.py | 2 +- over/version.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/over/misc.py b/over/misc.py index 1273090..0f3e4cc 100644 --- a/over/misc.py +++ b/over/misc.py @@ -194,7 +194,7 @@ def hexdump(data, indent=0, width=16, show_header=True, show_offsets=True, show_ output_io.write(" " * indent) if show_offsets: - output_io.write(format_str %(initial_offset + ptr)) + output_io.write(format_str %(initial_offset + ptr - width)) if use_colors: output_io.write(text.render("")) output_io.write(" ".join(hex_bytes)) diff --git a/over/version.py b/over/version.py index e0f48db..d68c168 100644 --- a/over/version.py +++ b/over/version.py @@ -4,5 +4,5 @@ major = 2 # VERSION_MAJOR_IDENTIFIER minor = 1 # VERSION_MINOR_IDENTIFIER # VERSION_LAST_MM 2.1 -patch = 5 # VERSION_PATCH_IDENTIFIER -str = "2.1.5" # VERSION_STRING_IDENTIFIER +patch = 6 # VERSION_PATCH_IDENTIFIER +str = "2.1.6" # VERSION_STRING_IDENTIFIER