all repos — mgba @ 9a87840e7e9b6bceefdb5c3dd3c43d2cbff06ca6

mGBA Game Boy Advance Emulator

Add invalid commands to the CLI debugger history instead of discarding them
Jeffrey Pfau jeffrey@endrift.com
Sat, 30 Aug 2014 04:02:19 -0700
commit

9a87840e7e9b6bceefdb5c3dd3c43d2cbff06ca6

parent

e6148ddb139eaac826c73c19ff29d9f8b2255d0f

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M src/debugger/cli-debugger.csrc/debugger/cli-debugger.c

@@ -483,9 +483,8 @@ if (history(cliDebugger->histate, &ev, H_FIRST) >= 0) {

_parse(cliDebugger, ev.str, strlen(ev.str) - 1); } } else { - if (_parse(cliDebugger, line, count - 1)) { - history(cliDebugger->histate, &ev, H_ENTER, line); - } + _parse(cliDebugger, line, count - 1); + history(cliDebugger->histate, &ev, H_ENTER, line); } } }