common console: also show prompt, if the engine wrote onto gui console since last call - fixes sci breakpoints

svn-id: r50449
This commit is contained in:
Martin Kiewitz 2010-06-28 16:09:54 +00:00
parent 0e7ccb896d
commit 0a58cdb6e9

View File

@ -156,7 +156,9 @@ void ConsoleDialog::open() {
_slideMode = kDownSlideMode;
Dialog::open();
if (_promptStartPos == -1) {
if ((_promptStartPos == -1) || (_currentPos > _promptEndPos)) {
// we print a prompt, if this is the first time we are called or if the
// engine wrote onto us since the last call
print(PROMPT);
_promptStartPos = _promptEndPos = _currentPos;
}