diff options
-rw-r--r-- | shell/sandbox.mu | 7 |
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) { |