aboutsummaryrefslogtreecommitdiff
path: root/src/grid/mod.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2018-03-09 13:49:47 -0800
committerJoe Wilm <jwilm@users.noreply.github.com>2018-04-02 10:10:22 -0700
commit98a1f7f508c0eb7f4614a380a79f2d07094ac8cb (patch)
tree3f14d4d206afe71e3cf1cf8e81c3becb71e000fb /src/grid/mod.rs
parent9ee1cf2455d5512b087757e09451f9d122548da2 (diff)
downloadalacritty-98a1f7f508c0eb7f4614a380a79f2d07094ac8cb.tar.gz
alacritty-98a1f7f508c0eb7f4614a380a79f2d07094ac8cb.zip
Make tests compile again
Some tests are still not passing, though. A migration script was added to migrate serialized grids from pre-scrollback to the current format. The script is included with this commit for completeness, posterity, and as an example to be used in the future. A few tests in grid/tests.rs were removed due to becoming irrelevant.
Diffstat (limited to 'src/grid/mod.rs')
-rw-r--r--src/grid/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/grid/mod.rs b/src/grid/mod.rs
index f1cec329..3495be1d 100644
--- a/src/grid/mod.rs
+++ b/src/grid/mod.rs
@@ -89,9 +89,11 @@ pub struct Grid<T> {
/// If the displayed region isn't at the bottom of the screen, it stays
/// stationary while more text is emitted. The scrolling implementation
/// updates this offset accordingly.
+ #[serde(default)]
display_offset: usize,
/// An limit on how far back it's possible to scroll
+ #[serde(default)]
scroll_limit: usize,
/// Selected region