aboutsummaryrefslogtreecommitdiffstats
path: root/gui/pyconsole.cc
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-14 19:12:29 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-14 19:12:29 +0100
commit1b5c1b028e0a44c6171aa2b95809e2b6edb9c13c (patch)
tree56765c8830654b50e0e7f302527a34fbeb38b371 /gui/pyconsole.cc
parenteafb9b4281db82b7f5b2cfcab4dfcfd1dcb038aa (diff)
parent8d1996cae99ff80a2d9390b94db54217ed1d8726 (diff)
downloadnextpnr-1b5c1b028e0a44c6171aa2b95809e2b6edb9c13c.tar.gz
nextpnr-1b5c1b028e0a44c6171aa2b95809e2b6edb9c13c.tar.bz2
nextpnr-1b5c1b028e0a44c6171aa2b95809e2b6edb9c13c.zip
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
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