diff options
author | Joe Wilm <joe@jwilm.com> | 2018-03-09 13:49:47 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-06-02 09:56:50 -0700 |
commit | b0f655ac85ab6d86e9e482cbb9035200c6f08d40 (patch) | |
tree | 7cc0ec0a6d7f855557886bf0ab36b6217421af66 /src/grid/mod.rs | |
parent | 688cabefc0bfc3224189c10235668eae5e5b0101 (diff) | |
download | r-alacritty-b0f655ac85ab6d86e9e482cbb9035200c6f08d40.tar.gz r-alacritty-b0f655ac85ab6d86e9e482cbb9035200c6f08d40.tar.bz2 r-alacritty-b0f655ac85ab6d86e9e482cbb9035200c6f08d40.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.rs | 2 |
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 |