about summary refs log tree commit diff stats
path: root/edit
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-08-22 08:47:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-08-22 09:18:15 -0700
commit115c6080017e9fa4b47292b5f58fbcef26daf4c4 (patch)
tree94d6a11cc249f827d310d0a02ec56323bf3ab714 /edit
parent736b26a73f2b1f31593d1b2fb7bd690280576ac8 (diff)
downloadmu-115c6080017e9fa4b47292b5f58fbcef26daf4c4.tar.gz
3981
It's always been ugly that I referred to a later layer/feature in a
label name.
Diffstat (limited to 'edit')
-rw-r--r--edit/005-sandbox.mu6
-rw-r--r--edit/011-errors.mu5
2 files changed, 4 insertions, 7 deletions
diff --git a/edit/005-sandbox.mu b/edit/005-sandbox.mu
index 9e175378..16754946 100644
--- a/edit/005-sandbox.mu
+++ b/edit/005-sandbox.mu
@@ -131,11 +131,7 @@ after <global-keypress> [
     screen <- update-status screen, [running...       ], 245/grey
     error?:bool <- run-sandboxes env, resources, screen
     # we could just render-all, but we do some work to minimize the number of prints to screen
-    <render-recipe-errors-on-F4>
-    {
-      break-unless error?
-      <render-sandbox-errors-on-F4>
-    }
+    <end-run-sandboxes-on-F4>
     screen <- render-sandbox-side screen, env, render
     {
       break-if error?
diff --git a/edit/011-errors.mu b/edit/011-errors.mu
index 0c1ba545..9625f8e1 100644
--- a/edit/011-errors.mu
+++ b/edit/011-errors.mu
@@ -23,7 +23,7 @@ def! update-recipes env:&:environment, resources:&:resources, screen:&:screen ->
   errors-found? <- copy 0/false
 ]
 
-after <render-recipe-errors-on-F4> [
+before <end-run-sandboxes-on-F4> [
   screen <- render-recipe-errors env, screen
 ]
 
@@ -64,8 +64,9 @@ before <end-run-sandboxes> [
   }
 ]
 
-after <render-sandbox-errors-on-F4> [
+before <end-run-sandboxes-on-F4> [
   {
+    break-unless error?
     recipe-errors:text <- get *env, recipe-errors:offset
     break-if recipe-errors
     error-index:num <- get *env, error-index:offset