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.
This commit is contained in:
Rene Gollent 2015-06-07 21:33:44 -04:00
parent 9457b76963
commit 5ea6993dc2

View File

@ -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;