about summary refs log tree commit diff stats
path: root/082persist.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-09-12 13:49:50 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-09-12 13:51:25 -0700
commitfa94f4d92340f001560b16dd0c2e5681ca5db031 (patch)
tree8de1aa88979d8d8606cf0a7f737d33fbb633f7b7 /082persist.cc
parent7169c636272a71a9f18d6c90e458c8089346c1fe (diff)
downloadmu-fa94f4d92340f001560b16dd0c2e5681ca5db031.tar.gz
2183 - environment + external editor using tmux
Thanks Jack and Caleb Couch for the idea.
Diffstat (limited to '082persist.cc')
-rw-r--r--082persist.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/082persist.cc b/082persist.cc
index 9d2a6d63..6ab6ea42 100644
--- a/082persist.cc
+++ b/082persist.cc
@@ -23,7 +23,12 @@ case RESTORE: {
     raise << current_recipe_name() << ": first ingredient of 'restore' should be a string, but got " << current_instruction().ingredients.at(0).to_string() << '\n' << end();
     break;
   }
-  if (Current_scenario) break;  // do nothing in tests
+  if (Current_scenario) {
+    // do nothing in tests
+    products.resize(1);
+    products.at(0).push_back(0);
+    break;
+  }
   string contents = slurp("lesson/"+filename);
   products.resize(1);
   if (contents.empty())