about summary refs log tree commit diff stats
path: root/apps/tile/environment.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-10-17 13:54:33 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-17 13:54:33 -0700
commit26bfae3d5e11ba62e0cd8aefa7dcc9fc0f6157f4 (patch)
tree10261cccf80a63c4e30d544811812cf1f2ea5051 /apps/tile/environment.mu
parentd29dcd1263aea339d2735898724c96e793c4c01c (diff)
downloadmu-26bfae3d5e11ba62e0cd8aefa7dcc9fc0f6157f4.tar.gz
7051
Diffstat (limited to 'apps/tile/environment.mu')
-rw-r--r--apps/tile/environment.mu4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu
index 1eac1779..31d8ef8c 100644
--- a/apps/tile/environment.mu
+++ b/apps/tile/environment.mu
@@ -435,7 +435,9 @@ $process-sandbox-rename:body: {
     var new-line-ah/eax: (addr handle line) <- address new-line-h
     allocate new-line-ah
     var new-line/eax: (addr line) <- lookup *new-line-ah
-    initialize-line new-line
+    # new-line->word = sandbox-partial-name-for-cursor-word
+    var new-line-word/ecx: (addr handle word) <- get new-line, data
+    copy-object new-name-ah, new-line-word
     # new-line->next = sandbox->data
     var new-line-next/ecx: (addr handle line) <- get new-line, next
     var sandbox-slot/edx: (addr handle line) <- get sandbox, data