about summary refs log tree commit diff stats
path: root/shell/sandbox.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-09 21:21:47 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-09 21:21:47 -0700
commit117229ae1708aa0e3aaab16bad34d4b6759d3fb0 (patch)
tree3d912e11ab4d36c4ef636c3b4841e1f999010835 /shell/sandbox.mu
parentbe9fa3780a528132ef78389354558a0c7f6773d9 (diff)
downloadmu-117229ae1708aa0e3aaab16bad34d4b6759d3fb0.tar.gz
.
Diffstat (limited to 'shell/sandbox.mu')
-rw-r--r--shell/sandbox.mu7
1 files changed, 4 insertions, 3 deletions
diff --git a/shell/sandbox.mu b/shell/sandbox.mu
index 4a81dc87..2b184ebc 100644
--- a/shell/sandbox.mu
+++ b/shell/sandbox.mu
@@ -667,13 +667,14 @@ fn run _in-ah: (addr handle gap-buffer), out: (addr stream byte), globals: (addr
     break-if-=
     return
   }
+  clear-stream out
+  print-cell eval-result-ah, out, trace
+  # refresh various rendering caches
+  mark-lines-dirty trace
   # if there was no error and the read-result starts with "set" or "def", save
   # the gap buffer in the modified global, then create a new one for the next
   # command.
   maybe-stash-gap-buffer-to-global globals, read-result-ah, _in-ah
-  clear-stream out
-  print-cell eval-result-ah, out, trace
-  mark-lines-dirty trace
 }
 
 fn read-evaluate-and-move-to-globals _in-ah: (addr handle gap-buffer), globals: (addr global-table), definition-name: (addr stream byte) {