about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-06 11:11:40 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-06 11:11:40 -0700
commit43ff7dcebb13b85cac8d7cef07559c26d72230c2 (patch)
tree7f4d94ea7d4eff310f52cfb767a98058e685f195
parentbe13beeb78dc22c3f05f863baa47982258ff3da9 (diff)
downloadmu-43ff7dcebb13b85cac8d7cef07559c26d72230c2.tar.gz
1539
-rw-r--r--078run_interactive.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/078run_interactive.cc b/078run_interactive.cc
index a83e1f08..4ac62793 100644
--- a/078run_interactive.cc
+++ b/078run_interactive.cc
@@ -38,6 +38,10 @@ void run_interactive(long long int address) {
     Recipe_number["interactive"] = Next_recipe_number++;
   // manual test: number followed by whitespace or comments
   string command = trim(strip_comments(tmp.str()));
+  if (command.empty()) {
+    ++current_step_index();
+    return;
+  }
   if (is_integer(command)) {
     print_value_of_location_as_response(to_integer(command));
     ++current_step_index();