Ticket #8212: console_killword.diff

File console_killword.diff, 654 bytes (added by wjp, 22 years ago)

console_killword.diff

  • gui/console.cpp

    RCS file: /cvsroot/scummvm/scummvm/gui/console.cpp,v
    retrieving revision 1.24
    diff -u -r1.24 console.cpp
     
    320320        }
    321321
    322322        for (int i = _currentPos; i < _promptEndPos; i++)
    323                 _buffer[i % kBufferSize] = _buffer[(i+cnt+1) % kBufferSize];
     323                _buffer[i % kBufferSize] = _buffer[(i+cnt) % kBufferSize];
    324324        _buffer[_promptEndPos % kBufferSize] = ' ';
    325         _promptEndPos -= cnt + 1;
     325        _promptEndPos -= cnt;
    326326}
    327327
    328328void ConsoleDialog::addToHistory(const char *str) {