[Scummvm-cvs-logs] SF.net SVN: scummvm:[47802] scummvm/trunk/gui/console.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Mon Feb 1 19:23:23 CET 2010
Revision: 47802
http://scummvm.svn.sourceforge.net/scummvm/?rev=47802&view=rev
Author: lordhoto
Date: 2010-02-01 18:23:23 +0000 (Mon, 01 Feb 2010)
Log Message:
-----------
Fix behavior of delete key, when the cursor is at the end of the input line.
Modified Paths:
--------------
scummvm/trunk/gui/console.cpp
Modified: scummvm/trunk/gui/console.cpp
===================================================================
--- scummvm/trunk/gui/console.cpp 2010-02-01 18:18:20 UTC (rev 47801)
+++ scummvm/trunk/gui/console.cpp 2010-02-01 18:23:23 UTC (rev 47802)
@@ -341,8 +341,10 @@
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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list