From e3bfb6f1feda36582432ade63ba83e9e38e3b71e Mon Sep 17 00:00:00 2001 From: Oliver Kiehl Date: Mon, 16 Dec 2002 22:15:38 +0000 Subject: small fix svn-id: r6002 --- gui/console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/console.cpp b/gui/console.cpp index 0433eee569..73eba7ca72 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -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'; } -- cgit v1.2.3