From 117229ae1708aa0e3aaab16bad34d4b6759d3fb0 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 9 Jun 2021 21:21:47 -0700 Subject: . --- shell/sandbox.mu | 7 ++++--- 1 file 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) { -- cgit 1.4.1-2-gfad0