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; break;
} }
case Common::KEYCODE_DELETE: case Common::KEYCODE_DELETE:
if (_currentPos < _promptEndPos) {
killChar(); killChar();
drawLine(pos2line(_currentPos)); drawLine(pos2line(_currentPos));
}
break; break;
case Common::KEYCODE_PAGEUP: case Common::KEYCODE_PAGEUP:
if (state.flags == Common::KBD_SHIFT) { if (state.flags == Common::KBD_SHIFT) {