aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/console.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/console.cpp b/gui/console.cpp
index 37d3bd6aa5..a2aa56f5b3 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -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;
}