aboutsummaryrefslogtreecommitdiffstats
path: root/gui/pyconsole.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gui/pyconsole.cc')
-rw-r--r--gui/pyconsole.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/gui/pyconsole.cc b/gui/pyconsole.cc
index 6da06b7e..0ee393ce 100644
--- a/gui/pyconsole.cc
+++ b/gui/pyconsole.cc
@@ -18,8 +18,6 @@
*
*/
-#ifndef NO_PYTHON
-
#include "pyconsole.h"
#include "pyinterpreter.h"
@@ -68,6 +66,7 @@ void PythonConsole::displayString(QString text)
setTextColor(NORMAL_COLOR);
cursor.insertText(text);
cursor.movePosition(QTextCursor::EndOfLine);
+ moveCursorToEnd();
}
void PythonConsole::moveCursorToEnd()
@@ -78,5 +77,3 @@ void PythonConsole::moveCursorToEnd()
}
NEXTPNR_NAMESPACE_END
-
-#endif // NO_PYTHON