summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 644cc2e..8834b75 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -1038,6 +1038,7 @@ bool MainWindow::compileTopLevelDocument(bool reload)
if (!animate_panel->isVisible()) {
if (!this->root_module) {
+ highlighter->unhighlightLastError();
QTextCursor cursor = editor->textCursor();
cursor.setPosition( parser_error_pos );
editor->setTextCursor( cursor );
@@ -1046,6 +1047,7 @@ bool MainWindow::compileTopLevelDocument(bool reload)
highlighter->unhighlightLastError();
}
}
+
}
bool changed = shouldcompiletoplevel;
contact: Jan Huwald // Impressum