summaryrefslogtreecommitdiffstats
path: root/src/grid/row.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2018-03-05 09:57:34 -0800
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:34:28 -0700
commit8ef062efd94975885776e61b6df936088b018da0 (patch)
tree34567e47784b1d2b0bc82fffac952a18ad4c6c1e /src/grid/row.rs
parentef3c384540b31004a423ada778ed5c02d90e68c6 (diff)
Move selection into Grid
Supporting selections with scrollback has two major components: 1. Grid needs access to Selection so that it may update the scroll position as the terminal text changes. 2. Selection needs to be implemented in terms of buffer offsets -- NOT lines -- and be updated when Storage is rotated. This commit implements the first part.
Diffstat (limited to 'src/grid/row.rs')
-rw-r--r--src/grid/row.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grid/row.rs b/src/grid/row.rs
index 6b6af7c8..f6b2a20e 100644
--- a/src/grid/row.rs
+++ b/src/grid/row.rs
@@ -21,7 +21,7 @@ use std::slice;
use index::Column;
/// A row in the grid
-#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
+#[derive(Default, Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
pub struct Row<T>(Vec<T>);
impl<T: Copy + Clone> Row<T> {