about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-10-10 21:31:33 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-10 21:31:33 -0700
commit818512d15a754c8ce092b2ee4e61cb611119b9fc (patch)
tree7746552247f84d500e2668bdc7ac537a35a4a27c /apps
parent07faf800ac9f6acc2599d26537f86fd83eb2ae15 (diff)
downloadmu-818512d15a754c8ce092b2ee4e61cb611119b9fc.tar.gz
6993
Diffstat (limited to 'apps')
-rw-r--r--apps/tile/environment.mu13
1 files changed, 4 insertions, 9 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu
index 53e28c84..6b00a4c7 100644
--- a/apps/tile/environment.mu
+++ b/apps/tile/environment.mu
@@ -105,18 +105,13 @@ $process:body: {
         var curr-word-is-expanded?/eax: boolean <- find-in-call-path expanded-words, cursor-call-path
         compare curr-word-is-expanded?, 0  # false
         break-if-=
+        # update cursor-call-path
 #?         print-string 0, "curr word is expanded\n"
         var self/ecx: (addr environment) <- copy _self
         var functions/ecx: (addr handle function) <- get self, functions
-        {
-          var curr-word-is-expanded?/eax: boolean <- find-in-call-path expanded-words, cursor-call-path
-          compare curr-word-is-expanded?, 0  # false
-          break-if-=
-          var n/eax: int <- body-length functions, cursor-word-ah
-          n <- decrement
-          push-to-call-path-element cursor-call-path, n
-#?           loop
-        }
+        var n/eax: int <- body-length functions, cursor-word-ah
+        n <- decrement
+        push-to-call-path-element cursor-call-path, n
         # move cursor to end of word
         get-cursor-word sandbox, functions, cursor-word-ah
         var cursor-word/eax: (addr word) <- lookup *cursor-word-ah