From d39370514a127faa05832701bb4a56fc6811de9d Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sat, 14 Apr 2018 17:37:57 +0200 Subject: Reset grid content when running `reset` In the current scrollback PR the `reset` command does not affect the scrollback history. To make sure the terminal is properly reset, it should clear the scrollback history. This commit fixes this by creating a new and empty grid whenever `reset` is executed. It takes the current dimensions and history size from the old grid. Right now there's an empty ref-test called `grid_reset` without any content, this should be implemented once #1244 is resolved. This fixes #1242. --- src/grid/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/grid/storage.rs b/src/grid/storage.rs index 50ce6aa5..66e0ccc8 100644 --- a/src/grid/storage.rs +++ b/src/grid/storage.rs @@ -13,7 +13,7 @@ /// done so manually. use std::ops::{Index, IndexMut}; -use index::{IndexRange, Line}; +use index::Line; #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Storage { -- cgit