From 352756af42eef40e3b69aa1d79726ce40768acff Mon Sep 17 00:00:00 2001 From: Couriersud Date: Fri, 19 Feb 2010 19:25:15 +0000 Subject: [PATCH] Fixed a bug in debugint.c: Actually make Del and BS delete the last character. [sz72] --- src/emu/debugint/debugint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/debugint/debugint.c b/src/emu/debugint/debugint.c index 02a85133041..4b0ed000299 100644 --- a/src/emu/debugint/debugint.c +++ b/src/emu/debugint/debugint.c @@ -1306,7 +1306,7 @@ static void handle_editor(running_machine *machine) { /* autoschow */ cur_editor = &focus_view->editor; - cur_editor->str = cur_editor->str.substr(0, cur_editor->str.len()); + cur_editor->str = cur_editor->str.substr(0, cur_editor->str.len()-1); } /* if it's any other key and we're not maxed out, update */ else if (event.ch >= ' ' && event.ch < 0x7f)