diff options
author | Max Horn | 2002-12-14 22:31:43 +0000 |
---|---|---|
committer | Max Horn | 2002-12-14 22:31:43 +0000 |
commit | e91eda059efa9170f24998b76bca606e1d4ccd71 (patch) | |
tree | 38f27faeb062d8fc8ae139557ea5b058cfd13396 | |
parent | 02d66e1b1d7de9a0510994b93b2f83bf16d86bdb (diff) | |
download | scummvm-rg350-e91eda059efa9170f24998b76bca606e1d4ccd71.tar.gz scummvm-rg350-e91eda059efa9170f24998b76bca606e1d4ccd71.tar.bz2 scummvm-rg350-e91eda059efa9170f24998b76bca606e1d4ccd71.zip |
use killChar for backspace as well
svn-id: r5971
-rw-r--r-- | gui/console.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index 432c4db2ee..8cf8df98c3 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -155,10 +155,7 @@ void ConsoleDialog::handleKeyDown(uint16 ascii, int keycode, int modifiers) if (_currentPos > _promptStartPos) { _currentPos--; - for (i = _currentPos; i < _promptEndPos; i++) - _buffer[i % kBufferSize] = _buffer[(i+1) % kBufferSize]; - _buffer[_promptEndPos % kBufferSize] = ' '; - _promptEndPos--; + killChar(); } scrollToCurrent(); draw(); // FIXME - not nice to redraw the full console just for one char! |