From 5ea6993dc22bb63322768a91f19e58472a749778 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sun, 7 Jun 2015 21:33:44 -0400 Subject: [PATCH] Debugger: Fix edit mode redraw issue. MemoryView: - During edit mode, if navigating with the left or right arrow only resulted adjusting the focus nybble and not transitioning to another block, redraw wouldn't be triggered, leading to it appearing as if the keypress had no effect. --- .../user_interface/gui/inspector_window/MemoryView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apps/debugger/user_interface/gui/inspector_window/MemoryView.cpp b/src/apps/debugger/user_interface/gui/inspector_window/MemoryView.cpp index 5cc2744c0a..e1cacc84af 100644 --- a/src/apps/debugger/user_interface/gui/inspector_window/MemoryView.cpp +++ b/src/apps/debugger/user_interface/gui/inspector_window/MemoryView.cpp @@ -358,6 +358,8 @@ MemoryView::KeyDown(const char* bytes, int32 numBytes) if (!fEditLowNybble) newAddress--; fEditLowNybble = !fEditLowNybble; + if (newAddress == fTargetAddress) + Invalidate(); } else newAddress -= blockSize; break; @@ -368,6 +370,8 @@ MemoryView::KeyDown(const char* bytes, int32 numBytes) if (fEditLowNybble) newAddress++; fEditLowNybble = !fEditLowNybble; + if (newAddress == fTargetAddress) + Invalidate(); } else newAddress += blockSize; break;