about summary refs log tree commit diff stats
path: root/edit/004-programming-environment.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-11-28 01:13:59 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-11-28 01:13:59 -0800
commitc76b0066fb2ae01a28630662cb04a043cc5841cb (patch)
treefce1fcfeb4521850bf775a3e71b4cad9708a1de5 /edit/004-programming-environment.mu
parent06ef635e8a4cbd17e43561809ed58691da6f18d7 (diff)
downloadmu-c76b0066fb2ae01a28630662cb04a043cc5841cb.tar.gz
3700
Reorder products of some functions in the edit/ and sandbox/ apps. My
recent realization: always return 'real' products before ones that just
indicate an ingredient is mutable.
Diffstat (limited to 'edit/004-programming-environment.mu')
-rw-r--r--edit/004-programming-environment.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/edit/004-programming-environment.mu b/edit/004-programming-environment.mu
index 7747e7a1..332b7e18 100644
--- a/edit/004-programming-environment.mu
+++ b/edit/004-programming-environment.mu
@@ -112,7 +112,7 @@ def event-loop screen:&:screen, console:&:console, env:&:environment -> screen:&
       sandbox-in-focus?:bool <- get *env, sandbox-in-focus?:offset
       {
         break-if sandbox-in-focus?
-        screen, recipes, render?:bool <- handle-keyboard-event screen, recipes, e:event
+        render?:bool <- handle-keyboard-event screen, recipes, e:event
         # refresh screen only if no more events
         # if there are more events to process, wait for them to clear up, then make sure you render-all afterward.
         more-events?:bool <- has-more-events? console
@@ -140,7 +140,7 @@ def event-loop screen:&:screen, console:&:console, env:&:environment -> screen:&
       }
       {
         break-unless sandbox-in-focus?
-        screen, current-sandbox, render?:bool <- handle-keyboard-event screen, current-sandbox, e:event
+        render?:bool <- handle-keyboard-event screen, current-sandbox, e:event
         # refresh screen only if no more events
         # if there are more events to process, wait for them to clear up, then make sure you render-all afterward.
         more-events?:bool <- has-more-events? console