summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2019-02-27 22:44:45 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2019-02-27 22:44:45 +0200
commiteb76e97ddd4d8e87b54c1dadc88a899838c65e06 (patch)
tree6c47fd68a3a4239fec9ad4f8ba17bbd518dc76ad /src
parent21cc4082bd7d60793f124e0d073a20cdc3b75459 (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.
Diffstat (limited to 'src')
-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]);