From 2e21f3deff585731d5377490cde87eeccd917445 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Wed, 18 Sep 2013 22:53:50 -0400 Subject: Don't recompile while editing the text. Wait until saving or manual refresh. Fixes #482 diff --git a/src/mainwin.cc b/src/mainwin.cc index 783772c..fd1c552 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -632,7 +632,9 @@ void MainWindow::compile(bool reload, bool forcedone) // if we haven't yet compiled the current text. else { QString current_doc = editor->toPlainText(); - if (current_doc != last_compiled_doc) shouldcompiletoplevel = true; + if (current_doc != last_compiled_doc && last_compiled_doc.size() == 0) { + shouldcompiletoplevel = true; + } } } else { -- cgit v0.10.1