mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 08:53:51 +00:00
small fix
svn-id: r6002
This commit is contained in:
parent
a37c45ba0c
commit
e3bfb6f1fe
@ -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';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user