diff options
author | Johannes Schickel | 2010-02-01 18:23:23 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-02-01 18:23:23 +0000 |
commit | 516d44e65c1e3babdc850c211585324ee813d14c (patch) | |
tree | 7936bcda71f82c8af7cc7a269304ea1aef0127db | |
parent | 17f198369d76dd86e502f3095deec142a3252dba (diff) | |
download | scummvm-rg350-516d44e65c1e3babdc850c211585324ee813d14c.tar.gz scummvm-rg350-516d44e65c1e3babdc850c211585324ee813d14c.tar.bz2 scummvm-rg350-516d44e65c1e3babdc850c211585324ee813d14c.zip |
Fix behavior of delete key, when the cursor is at the end of the input line.
svn-id: r47802
-rw-r--r-- | gui/console.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index ad3f30ac1b..1316b59241 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -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) { |