about summary refs log tree commit diff stats
path: root/edit
diff options
context:
space:
mode:
authorStephen Malina <stephenmalina@gmail.com>2016-07-14 04:47:18 -0700
committerStephen Malina <stephenmalina@gmail.com>2016-07-14 05:42:03 -0700
commit8ee533693acdea45ff9baae3ca0c5b3e0c43de7a (patch)
treecfe296fd2b4374d0c10c3d13cac1ec3f1dea6341 /edit
parent8dccf184feebe1acd2354231e16d464ef6f8251d (diff)
downloadmu-8ee533693acdea45ff9baae3ca0c5b3e0c43de7a.tar.gz
3111
Show number of instructions in the editor when a
user clicks on a run instruction in the sandbox.
Diffstat (limited to 'edit')
-rw-r--r--edit/010-sandbox-trace.mu7
-rw-r--r--edit/011-errors.mu7
2 files changed, 10 insertions, 4 deletions
diff --git a/edit/010-sandbox-trace.mu b/edit/010-sandbox-trace.mu
index e7297b75..fd256732 100644
--- a/edit/010-sandbox-trace.mu
+++ b/edit/010-sandbox-trace.mu
@@ -41,6 +41,7 @@ recipe foo [
     .  stash [abc]                                     ┊0   edit          copy            delete         .
     .]                                                 ┊foo                                              .
     .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊abc                                              .
+    .                                                  ┊8 instructions run                               .
     .                                                  ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
     .                                                  ┊                                                 .
   ]
@@ -51,6 +52,7 @@ recipe foo [
     .                                                  ┊                                                 .
     .                                                  ┊                                                 .
     .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊abc                                              .
+    .                                                  ┊8 instructions run                               .
     .                                                  ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
     .                                                  ┊                                                 .
   ]
@@ -115,7 +117,8 @@ recipe foo [
     .  stash [abc]                                     ┊0   edit          copy            delete         .
     .  reply 4                                         ┊foo                                              .
     .]                                                 ┊abc                                              .
-    .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊4                                                .
+    .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊8 instructions run                               .
+    .                                                  ┊4                                                .
     .                                                  ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
     .                                                  ┊                                                 .
   ]
@@ -140,6 +143,7 @@ scenario clicking-on-app-trace-does-nothing [
     .                                                  ┊0   edit          copy            delete         .
     .                                                  ┊stash 123456789                                  .
     .                                                  ┊123456789                                        .
+    .                                                  ┊6 instructions run                               .
     .                                                  ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
     .                                                  ┊                                                 .
   ]
@@ -158,6 +162,7 @@ scenario clicking-on-app-trace-does-nothing [
     .                                                  ┊0   edit          copy            delete         .
     .                                                  ┊stash 123456789                                  .
     .                                                  ┊123456789                                        .
+    .                                                  ┊6 instructions run                               .
     .                                                  ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
     .                                                  ┊                                                 .
   ]
diff --git a/edit/011-errors.mu b/edit/011-errors.mu
index c27ec54f..8e239e5d 100644
--- a/edit/011-errors.mu
+++ b/edit/011-errors.mu
@@ -684,8 +684,9 @@ reply b
     .a:number <- next-ingredient                       ┊0   edit          copy            delete         .
     .b:number <- next-ingredient                       ┊foo 4, 0                                         .
     .stash [dividing by], b                            ┊dividing by 0                                    .
-    ._, c:number <- divide-with-remainder a, b         ┊foo: divide by zero in '_, c:number <- divide-wi↩.
-    .reply b                                           ┊th-remainder a, b'                               .
-    .]                                                 ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
+    ._, c:number <- divide-with-remainder a, b         ┊14 instructions run                              .
+    .reply b                                           ┊foo: divide by zero in '_, c:number <- divide-wi↩.
+    .]                                                 ┊th-remainder a, b'                               .
+    .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
   ]
 ]