diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-12 22:11:19 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-12 22:11:19 (GMT) |
commit | 2c6d69645ff1391683ae6ffde8bd305277e17914 (patch) | |
tree | c85f0871494d54e8cc21b5052d012f419950fa4a /src/mainwin.cc | |
parent | 3b7bc56bdeba2401f88afd46d3969bcc543796fd (diff) |
now passes all tests in 'manual test suite'
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r-- | src/mainwin.cc | 2 |
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; |