diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-11-28 01:13:59 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-11-28 01:13:59 -0800 |
commit | c76b0066fb2ae01a28630662cb04a043cc5841cb (patch) | |
tree | fce1fcfeb4521850bf775a3e71b4cad9708a1de5 /edit/004-programming-environment.mu | |
parent | 06ef635e8a4cbd17e43561809ed58691da6f18d7 (diff) | |
download | mu-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.mu | 4 |
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 |