diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2019-02-27 22:44:45 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2019-02-27 22:44:45 +0200 |
commit | eb76e97ddd4d8e87b54c1dadc88a899838c65e06 (patch) | |
tree | 6c47fd68a3a4239fec9ad4f8ba17bbd518dc76ad | |
parent | 21cc4082bd7d60793f124e0d073a20cdc3b75459 (diff) |
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.
-rw-r--r-- | src/memview.c | 2 |
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]); |