about summary refs log tree commit diff stats
path: root/apps
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
parentcbd076e02c0b7049bfb87290fc93a026cc7b355d (diff)
downloadmu-5b7ccbc8f4f16a1c104f3415cccbdf5cce55727f.tar.gz
6985 - tile: make calls read-only
Diffstat (limited to 'apps')
-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-!=
id='n148' href='#n148'>148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177