From faba2540f94749f16b0d8c67f24da5b44cc8f6cb Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sat, 1 Apr 2017 20:37:39 -0230 Subject: [PATCH] The debugger 'cls' no longer erases history. --- src/debugger/gui/PromptWidget.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/debugger/gui/PromptWidget.cxx b/src/debugger/gui/PromptWidget.cxx index e0517b6fb..d9e656882 100644 --- a/src/debugger/gui/PromptWidget.cxx +++ b/src/debugger/gui/PromptWidget.cxx @@ -922,19 +922,13 @@ string PromptWidget::getCompletionPrefix(const StringList& completions, string p // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void PromptWidget::clearScreen() { - // Initialize start position and history + // Initialize start position _currentPos = 0; _scrollLine = _linesPerPage - 1; _firstLineInBuffer = 0; _promptStartPos = _promptEndPos = -1; 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) updateScrollBuffer(); }