about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-04 20:14:45 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-04 20:14:45 -0700
commit1aba9c6f8e69db063104f18ed62e01d8e5fcdb11 (patch)
tree7da5b5bb45a62902e84c3c126f93126e74c762a5
parent55001994ef35a894ed0ce90f2f2c8cd0f91069c7 (diff)
downloadmu-1aba9c6f8e69db063104f18ed62e01d8e5fcdb11.tar.gz
.
-rw-r--r--shell/environment.mu8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/environment.mu b/shell/environment.mu
index 2112821c..9cadbf4f 100644
--- a/shell/environment.mu
+++ b/shell/environment.mu
@@ -28,14 +28,14 @@ fn render-environment screen: (addr screen), _self: (addr environment) {
   var sandbox/edx: (addr sandbox) <- get self, sandbox
   render-sandbox screen, sandbox, 0x55/sandbox-left-margin, 0/sandbox-top-margin, 0x80/screen-width, 0x2f/screen-height-without-menu
   # render menu
-  var cursor-in-globals?/eax: (addr boolean) <- get self, cursor-in-globals?
   {
+    var cursor-in-globals?/eax: (addr boolean) <- get self, cursor-in-globals?
     compare *cursor-in-globals?, 0/false
-    break-if-!=
-    render-sandbox-menu screen, sandbox
+    break-if-=
+    render-globals-menu screen, globals
     return
   }
-  render-globals-menu screen, globals
+  render-sandbox-menu screen, sandbox
 }
 
 fn edit-environment _self: (addr environment), key: grapheme, data-disk: (addr disk) {