diff options
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/event.rs b/src/event.rs index cf7d1030..37e4eccf 100644 --- a/src/event.rs +++ b/src/event.rs @@ -271,7 +271,8 @@ impl<N: Notify> Processor<N> { CloseRequested => { 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"); |