mirror of https://github.com/stella-emu/stella.git
The debugger 'cls' no longer erases history.
This commit is contained in:
parent
ae65f95848
commit
faba2540f9
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue