about summary refs log tree commit diff stats
path: root/shell
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-04 19:40:06 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-04 19:40:06 -0700
commit84bc03ab39b659beda93477ffdf56486a26fde1b (patch)
tree80352e69e72ef79e3e3bd7a20bb1191893d90492 /shell
parent4dd08c268d29abe39df497ee0c04d9e36c6add9c (diff)
downloadmu-84bc03ab39b659beda93477ffdf56486a26fde1b.tar.gz
.
Diffstat (limited to 'shell')
-rw-r--r--shell/environment.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/environment.mu b/shell/environment.mu
index 0fddb557..9a12b46f 100644
--- a/shell/environment.mu
+++ b/shell/environment.mu
@@ -34,9 +34,8 @@ fn render-environment screen: (addr screen), _self: (addr environment) {
 
 fn edit-environment _self: (addr environment), key: byte, data-disk: (addr disk) {
   var self/esi: (addr environment) <- copy _self
-  var cursor-in-globals?/ecx: (addr boolean) <- get self, cursor-in-globals?
   var globals/edi: (addr global-table) <- get self, globals
-  var sandbox/esi: (addr sandbox) <- get self, sandbox
+  var sandbox/ecx: (addr sandbox) <- get self, sandbox
   # ctrl-r
   # Assumption: 'real-screen' and 'real-keyboard' are 0
   {
@@ -89,6 +88,7 @@ fn edit-environment _self: (addr environment), key: byte, data-disk: (addr disk)
   }
   # dispatch the key to either sandbox or globals
   {
+    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