The debugger 'cls' no longer erases history.

This commit is contained in:
Stephen Anthony 2017-04-01 20:37:39 -02:30
parent ae65f95848
commit faba2540f9
1 changed files with 1 additions and 7 deletions

View File

@ -922,19 +922,13 @@ string PromptWidget::getCompletionPrefix(const StringList& completions, string p
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void PromptWidget::clearScreen() void PromptWidget::clearScreen()
{ {
// Initialize start position and history // Initialize start position
_currentPos = 0; _currentPos = 0;
_scrollLine = _linesPerPage - 1; _scrollLine = _linesPerPage - 1;
_firstLineInBuffer = 0; _firstLineInBuffer = 0;
_promptStartPos = _promptEndPos = -1; _promptStartPos = _promptEndPos = -1;
memset(_buffer, 0, kBufferSize * sizeof(int)); memset(_buffer, 0, kBufferSize * sizeof(int));
_historyIndex = 0;
_historyLine = 0;
_historySize = 0;
for (int i = 0; i < kHistorySize; i++)
_history[i][0] = '\0';
if(!_firstTime) if(!_firstTime)
updateScrollBuffer(); updateScrollBuffer();
} }