summaryrefslogtreecommitdiff
path: root/src/memview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memview.c')
-rw-r--r--src/memview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memview.c b/src/memview.c
index bd34025..3804559 100644
--- a/src/memview.c
+++ b/src/memview.c
@@ -460,7 +460,7 @@ repaint_hexview(const struct named_region *named, const bool update)
screen_print(" ");
}
- for (size_t x = row_start; x < pointer; ++x) {
+ for (size_t x = row_start; x < row_start + bw; ++x) {
const bool selected = (start + x == ctx.hexview.offset);
const bool changed = (ctx.hexview.memory[0].data[x] != ctx.hexview.memory[1].data[x]);