diff options
Diffstat (limited to 'gui/console.cpp')
-rw-r--r-- | gui/console.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index 8cf8df98c3..a416d57192 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -282,7 +282,7 @@ void ConsoleDialog::killLastWord() for (int i = _currentPos; i < _promptEndPos; i++) _buffer[i % kBufferSize] = _buffer[(i+cnt+1) % kBufferSize]; _buffer[_promptEndPos % kBufferSize] = ' '; - _promptEndPos--; + _promptEndPos -= cnt + 1; } void ConsoleDialog::nextLine() |