about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-04 19:41:05 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-04 19:41:05 -0700
commit30745be5b57fc8edd6bfde738bf6c670dd6c161d (patch)
tree1b2c2a0c9cf8394cff9a182d2a3f751216abf7e2
parent84bc03ab39b659beda93477ffdf56486a26fde1b (diff)
downloadmu-30745be5b57fc8edd6bfde738bf6c670dd6c161d.tar.gz
.
-rw-r--r--shell/environment.mu6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/environment.mu b/shell/environment.mu
index 9a12b46f..bd909f22 100644
--- a/shell/environment.mu
+++ b/shell/environment.mu
@@ -90,11 +90,11 @@ fn edit-environment _self: (addr environment), key: byte, data-disk: (addr disk)
   {
     var cursor-in-globals?/eax: (addr boolean) <- get self, cursor-in-globals?
     compare *cursor-in-globals?, 0/false
-    break-if-!=
-    edit-sandbox sandbox, key, globals, data-disk, 1/tweak-real-screen
+    break-if-=
+    edit-globals globals, key, data-disk
     return
   }
-  edit-globals globals, key, data-disk
+  edit-sandbox sandbox, key, globals, data-disk, 1/tweak-real-screen
 }
 
 # Gotcha: some saved state may not load.