aboutsummaryrefslogtreecommitdiff
path: root/src/grid/storage.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2018-04-14 17:37:57 +0200
committerJoe Wilm <jwilm@users.noreply.github.com>2018-05-14 09:50:12 -0700
commit56fd6b533b6a1544dc707028ad07461d09c0a152 (patch)
treeb7d19e3cdabb5d902db5973762eb9d43cd15bc6e /src/grid/storage.rs
parent400a2c1701e36ba7a5f9b2ffff79df392ebebaf9 (diff)
downloadalacritty-56fd6b533b6a1544dc707028ad07461d09c0a152.tar.gz
alacritty-56fd6b533b6a1544dc707028ad07461d09c0a152.zip
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.
Diffstat (limited to 'src/grid/storage.rs')
-rw-r--r--src/grid/storage.rs2
1 files changed, 1 insertions, 1 deletions
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<T> {