about summary refs log tree commit diff stats
path: root/edit
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-05-28 13:40:09 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-05-28 13:40:09 -0700
commitec7c8c8b7434f498098c6b3417bb9c47d5b12881 (patch)
tree53cd82c588090de942c26dd0da3fbda27ffeb524 /edit
parentd69c6ccfc79f46ae3cd4e9284889b4a267745c55 (diff)
downloadmu-ec7c8c8b7434f498098c6b3417bb9c47d5b12881.tar.gz
3886
Diffstat (limited to 'edit')
-rw-r--r--edit/006-sandbox-copy.mu10
1 files changed, 5 insertions, 5 deletions
diff --git a/edit/006-sandbox-copy.mu b/edit/006-sandbox-copy.mu
index c754e235..4512afaf 100644
--- a/edit/006-sandbox-copy.mu
+++ b/edit/006-sandbox-copy.mu
@@ -345,7 +345,7 @@ after <global-touch> [
     break-unless copy?
     modified?:bool <- prepend-sandbox-into-recipe-side click-row, env
     break-unless modified?
-    put *env, sandbox-in-focus?:offset, 0/false
+    *env <- put *env, sandbox-in-focus?:offset, 0/false
     screen <- render-recipes screen, env, render
     screen <- update-cursor screen, recipes, current-sandbox, sandbox-in-focus?, env
     loop +next-event
@@ -383,9 +383,9 @@ def prepend-sandbox-into-recipe-side click-row:num, env:&:environment -> clicked
   sandbox-data:text <- get *sandbox, data:offset
   insert recipe-data, sandbox-data
   # reset cursor
-  put *recipe-editor, top-of-screen:offset, recipe-data
-  put *recipe-editor, before-cursor:offset, recipe-data
-  put *recipe-editor, cursor-row:offset, 1
-  put *recipe-editor, cursor-column:offset, 0
+  *recipe-editor <- put *recipe-editor, top-of-screen:offset, recipe-data
+  *recipe-editor <- put *recipe-editor, before-cursor:offset, recipe-data
+  *recipe-editor <- put *recipe-editor, cursor-row:offset, 1
+  *recipe-editor <- put *recipe-editor, cursor-column:offset, 0
   return 1/true
 ]