From eb76e97ddd4d8e87b54c1dadc88a899838c65e06 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Wed, 27 Feb 2019 22:44:45 +0200 Subject: memview: draw each row to end fixes bug where last row's char display may not get updated, if it's also last row that's displayed in the hex view widget. --- src/memview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- cgit v1.2.3