From ec7c8c8b7434f498098c6b3417bb9c47d5b12881 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 28 May 2017 13:40:09 -0700 Subject: 3886 --- edit/006-sandbox-copy.mu | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'edit') 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 [ 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 ] -- cgit 1.4.1-2-gfad0