small fix

svn-id: r6002
This commit is contained in:
Oliver Kiehl 2002-12-16 22:15:38 +00:00
parent a37c45ba0c
commit e3bfb6f1fe

View File

@ -339,7 +339,7 @@ void ConsoleDialog::historyScroll(int direction)
if (_historyLine == 0 && direction > 0) {
int i;
for (i = 0; i < _promptEndPos - _promptStartPos; i++)
_history[_historyIndex][i] = _buffer[_promptStartPos + i];
_history[_historyIndex][i] = _buffer[(_promptStartPos + i) % kBufferSize];
_history[_historyIndex][i] = '\0';
}