aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/event.rs b/src/event.rs
index 4d50efda..1cdf1302 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -267,7 +267,8 @@ impl<N: Notify> Processor<N> {
Closed => {
if ref_test {
// dump grid state
- let grid = processor.ctx.terminal.grid();
+ let mut grid = processor.ctx.terminal.grid().clone();
+ grid.truncate();
let serialized_grid = json::to_string(&grid)
.expect("serialize grid");