Fixed a bug in debugint.c: Actually make Del and BS delete the last character. [sz72]

This commit is contained in:
Couriersud 2010-02-19 19:25:15 +00:00
parent b266aa9e96
commit 352756af42

View File

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