about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-05 14:37:37 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-05 14:37:37 -0800
commit90e9eb3d4fa431ed0e7864caead19cd2e06b2c65 (patch)
tree84f81f483575276d399f239fb256c464b7396164
parent350ca0c64e2cb0115aa32e073db5e78e752e7196 (diff)
downloadmu-90e9eb3d4fa431ed0e7864caead19cd2e06b2c65.tar.gz
2376
-rw-r--r--edit/010-warnings.mu14
1 files changed, 7 insertions, 7 deletions
diff --git a/edit/010-warnings.mu b/edit/010-warnings.mu
index af23d0ce..59e328c1 100644
--- a/edit/010-warnings.mu
+++ b/edit/010-warnings.mu
@@ -5,10 +5,9 @@ container programming-environment-data [
 ]
 
 # copy code from recipe editor, persist, load into mu, save any warnings
-recipe! update-recipes [
+recipe! update-recipes env:address:programming-environment-data, screen:address:screen -> errors-found?:boolean, env:address:programming-environment-data, screen:address:screen [
   local-scope
-  env:address:programming-environment-data <- next-ingredient
-  screen:address:screen <- next-ingredient
+  load-ingredients
   recipes:address:editor-data <- get *env, recipes:offset
   in:address:array:character <- editor-contents recipes
   save [recipes.mu], in
@@ -19,9 +18,10 @@ recipe! update-recipes [
     break-unless *recipe-warnings
     status:address:array:character <- new [errors found]
     update-status screen, status, 1/red
-    reply 1/errors-found, env/same-as-ingredient:0, screen/same-as-ingredient:1
+    errors-found? <- copy 1/true
+    reply
   }
-  reply 0/no-errors-found, env/same-as-ingredient:0, screen/same-as-ingredient:1
+  errors-found? <- copy 0/false
 ]
 
 before <render-components-end> [
@@ -46,9 +46,9 @@ container sandbox-data [
   warnings:address:array:character
 ]
 
-recipe! update-sandbox [
+recipe! update-sandbox sandbox:address:sandbox-data -> sandbox:address:sandbox-data [
   local-scope
-  sandbox:address:sandbox-data <- next-ingredient
+  load-ingredients
   data:address:array:character <- get *sandbox, data:offset
   response:address:address:array:character <- get-address *sandbox, response:offset
   warnings:address:address:array:character <- get-address *sandbox, warnings:offset