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-09 23:35:19 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-09 23:35:19 -0700
commit5b7ccbc8f4f16a1c104f3415cccbdf5cce55727f (patch)
tree8b71da7aa43c5e8a8d92043004c15c0e9fb0811d /apps/tile/environment.mu
parentcbd076e02c0b7049bfb87290fc93a026cc7b355d (diff)
downloadmu-5b7ccbc8f4f16a1c104f3415cccbdf5cce55727f.tar.gz
6985 - tile: make calls read-only
Diffstat (limited to 'apps/tile/environment.mu')
-rw-r--r--apps/tile/environment.mu8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/tile/environment.mu b/apps/tile/environment.mu
index 759ff70c..cbbae239 100644
--- a/apps/tile/environment.mu
+++ b/apps/tile/environment.mu
@@ -173,6 +173,14 @@ $process:body: {
       toggle-cursor-word sandbox
       break $process:body
     }
+    # if call, break
+    var cursor-call-path-ah/eax: (addr handle call-path-element) <- get sandbox, cursor-call-path
+    var cursor-call-path/eax: (addr call-path-element) <- lookup *cursor-call-path-ah
+    var next-cursor-element-ah/eax: (addr handle call-path-element) <- get cursor-call-path, next
+    var next-cursor-element/eax: (addr call-path-element) <- lookup *next-cursor-element-ah
+    compare next-cursor-element, 0
+    break-if-!= $process:body
+    # - remaining keys only work at the top row outside any function calls
     compare key, 0x7f  # del (backspace on Macs)
     {
       break-if-!=