about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-01-23 13:47:10 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-01-23 13:47:10 -0800
commitcf478e14aab32fbfcccd7443e6b2de4f2c247060 (patch)
treea6e544a7656e515ef2a8adc553197e548ba9ee47
parenta01dd5959383a0dc7ffe2c9b3eee8d2c28e94c45 (diff)
downloadmu-cf478e14aab32fbfcccd7443e6b2de4f2c247060.tar.gz
2595 - bugfix: update state when restoring sandboxes
-rw-r--r--edit/005-sandbox.mu3
1 files changed, 3 insertions, 0 deletions
diff --git a/edit/005-sandbox.mu b/edit/005-sandbox.mu
index 160c4794..1de12fa8 100644
--- a/edit/005-sandbox.mu
+++ b/edit/005-sandbox.mu
@@ -367,6 +367,9 @@ recipe restore-sandboxes env:address:shared:programming-environment-data -> env:
     curr <- get-address **curr, next-sandbox:offset
     loop
   }
+  # update sandbox count
+  number-of-sandboxes:address:number <- get-address *env, number-of-sandboxes:offset
+  *number-of-sandboxes <- copy idx
 ]
 
 # print the fake sandbox screen to 'screen' with appropriate delimiters