about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-07-08 14:53:37 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-07-08 14:53:37 -0700
commit90938fcb3117844f8d79ff9a277a4c51239dd9e0 (patch)
tree44d050db9455aa5ab0b88fb084878baccf04c256
parent9fdda88b2ef9306128e0cbf6027f5a839ae3210c (diff)
downloadmu-90938fcb3117844f8d79ff9a277a4c51239dd9e0.tar.gz
1725
-rw-r--r--081run_interactive.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/081run_interactive.cc b/081run_interactive.cc
index 0e427b50..4120f97b 100644
--- a/081run_interactive.cc
+++ b/081run_interactive.cc
@@ -89,8 +89,12 @@ recipe main [
 
 :(before "End Globals")
 string Most_recent_results;
+:(before "End Setup")
+Most_recent_results = "";
 :(before "End of Instruction")
-if (Running_interactive) record_products(current_instruction(), products);
+if (Running_interactive && current_instruction().products.empty()) {
+  record_products(current_instruction(), products);
+}
 :(code)
 void record_products(const instruction& instruction, const vector<vector<double> >& products) {
   ostringstream out;