aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2018-04-14 17:37:57 +0200
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:56:50 -0700
commitd39370514a127faa05832701bb4a56fc6811de9d (patch)
treef9f8e61352783d2caaf86b118971c2efea40bac4 /src
parent2234234ca9a2ab0d7eccd46893cbe6799b051aba (diff)
downloadalacritty-d39370514a127faa05832701bb4a56fc6811de9d.tar.gz
alacritty-d39370514a127faa05832701bb4a56fc6811de9d.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')
-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> {