Fix behavior of delete key, when the cursor is at the end of the input line.

svn-id: r47802
This commit is contained in:
Johannes Schickel 2010-02-01 18:23:23 +00:00
parent 17f198369d
commit 516d44e65c

View File

@ -341,8 +341,10 @@ void ConsoleDialog::handleKeyDown(Common::KeyState state) {
break;
}
case Common::KEYCODE_DELETE:
killChar();
drawLine(pos2line(_currentPos));
if (_currentPos < _promptEndPos) {
killChar();
drawLine(pos2line(_currentPos));
}
break;
case Common::KEYCODE_PAGEUP:
if (state.flags == Common::KBD_SHIFT) {