about summary refs log tree commit diff stats
path: root/sandbox/005-sandbox.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-11-27 22:21:18 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-11-27 22:21:18 -0800
commit970df30262537492b5c60dc5c802f9bcca41a4ea (patch)
treea7459c8875f050a688b68d80b7a43af6505de6c1 /sandbox/005-sandbox.mu
parentdc89309339a2331d83e5b0b9db3cfe6c811be73b (diff)
downloadmu-970df30262537492b5c60dc5c802f9bcca41a4ea.tar.gz
3698
Update sandbox/ with recent changes to edit/ (commit 3695 onwards).

[Incidentally, this is the first commit to be made while running on
OpenBSD. Simulated and host systems are going to blur together from now
on.]
Diffstat (limited to 'sandbox/005-sandbox.mu')
-rw-r--r--sandbox/005-sandbox.mu14
1 files changed, 7 insertions, 7 deletions
diff --git a/sandbox/005-sandbox.mu b/sandbox/005-sandbox.mu
index 7787b50c..9fd2a08b 100644
--- a/sandbox/005-sandbox.mu
+++ b/sandbox/005-sandbox.mu
@@ -1,14 +1,14 @@
 ## running code from the editor and creating sandboxes
 #
 # Running code in the sandbox editor prepends its contents to a list of
-# (non-editable) sandboxes below the editor, showing the result and a maybe
-# few other things.
+# (non-editable) sandboxes below the editor, showing the result and maybe a
+# few other things (later layers).
 #
-# This layer draws the menubar buttons non-editable sandboxes but they don't
-# do anything yet. Later layers implement each button.
+# This layer draws the menubar buttons in non-editable sandboxes but they
+# don't do anything yet. Later layers implement each button.
 
 container environment [
-  sandbox:&:sandbox  # list of sandboxes, from top to bottom
+  sandbox:&:sandbox  # list of sandboxes, from top to bottom. TODO: switch to &:list:sandbox
   render-from:num
   number-of-sandboxes:num
 ]
@@ -110,7 +110,7 @@ after <global-keypress> [
     screen <- update-status screen, [running...       ], 245/grey
     test-recipes:text, _/optional <- next-ingredient
     error?:bool, env, screen <- run-sandboxes env, screen, test-recipes
-#?     test-recipes <- copy 0  # abandon
+    test-recipes <- copy 0  # abandon
     # F4 might update warnings and results on both sides
     screen <- render-all screen, env, render
     {
@@ -607,7 +607,7 @@ def editor-contents editor:&:editor -> result:text [
 scenario editor-provides-edited-contents [
   local-scope
   assume-screen 10/width, 5/height
-  e:&:editor <- new-editor [abc], screen, 0/left, 10/right
+  e:&:editor <- new-editor [abc], 0/left, 10/right
   assume-console [
     left-click 1, 2
     type [def]