From fa94f4d92340f001560b16dd0c2e5681ca5db031 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 12 Sep 2015 13:49:50 -0700 Subject: 2183 - environment + external editor using tmux Thanks Jack and Caleb Couch for the idea. --- 082persist.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '082persist.cc') 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()) -- cgit 1.4.1-2-gfad0