about summary refs log tree commit diff stats
path: root/edit
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-09-29 21:55:23 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-09-29 21:55:23 -0700
commit124dc19908532f2eee3498999814cf901cce2af7 (patch)
tree60a67fc4f44bd7113d872811dcc435aec2d0e753 /edit
parent2e72dc12f77bb395df6a05a367c2a9ec7b9accc1 (diff)
downloadmu-124dc19908532f2eee3498999814cf901cce2af7.tar.gz
2216
Diffstat (limited to 'edit')
-rw-r--r--edit/004-programming-environment.mu1
-rw-r--r--edit/005-sandbox.mu13
2 files changed, 13 insertions, 1 deletions
diff --git a/edit/004-programming-environment.mu b/edit/004-programming-environment.mu
index c825a503..95b7ca62 100644
--- a/edit/004-programming-environment.mu
+++ b/edit/004-programming-environment.mu
@@ -10,7 +10,6 @@ recipe! main [
   initial-sandbox:address:array:character <- new []
   hide-screen 0/screen
   env:address:programming-environment-data <- new-programming-environment 0/screen, initial-recipe, initial-sandbox
-  env <- restore-sandboxes env
   render-all 0/screen, env
   event-loop 0/screen, 0/console, env
   # never gets here
diff --git a/edit/005-sandbox.mu b/edit/005-sandbox.mu
index 5d2e575e..4aad213b 100644
--- a/edit/005-sandbox.mu
+++ b/edit/005-sandbox.mu
@@ -4,6 +4,19 @@
 # (non-editable) sandboxes below the editor, showing the result and a maybe
 # few other things.
 
+recipe! main [
+  local-scope
+  open-console
+  initial-recipe:address:array:character <- restore [recipes.mu]
+  initial-sandbox:address:array:character <- new []
+  hide-screen 0/screen
+  env:address:programming-environment-data <- new-programming-environment 0/screen, initial-recipe, initial-sandbox
+  env <- restore-sandboxes env
+  render-all 0/screen, env
+  event-loop 0/screen, 0/console, env
+  # never gets here
+]
+
 container programming-environment-data [
   sandbox:address:sandbox-data  # list of sandboxes, from top to bottom
 ]