diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-11-10 18:16:22 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 18:16:22 +0400 |
commit | 5060f8eeb864e8c304fbad9588bdd882db942356 (patch) | |
tree | b615ded19e6ac545b495f716e2a22ecd903332af /alacritty_terminal/tests | |
parent | 3ffd6c8f26f9788466b9ba95659b8de970a10f08 (diff) | |
download | alacritty-5060f8eeb864e8c304fbad9588bdd882db942356.tar.gz alacritty-5060f8eeb864e8c304fbad9588bdd882db942356.zip |
Remove `alacritty_config` from alacritty_terminal
There's no need to force alacritty's user configuration on
other users of the crate, thus provide the options actually used
by alacritty_terminal itself.
Diffstat (limited to 'alacritty_terminal/tests')
-rw-r--r-- | alacritty_terminal/tests/ref.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/alacritty_terminal/tests/ref.rs b/alacritty_terminal/tests/ref.rs index 48704fb8..4f8bc74a 100644 --- a/alacritty_terminal/tests/ref.rs +++ b/alacritty_terminal/tests/ref.rs @@ -5,14 +5,13 @@ use std::fs::{self, File}; use std::io::Read; use std::path::Path; -use alacritty_terminal::ansi; -use alacritty_terminal::config::Config; use alacritty_terminal::event::{Event, EventListener}; use alacritty_terminal::grid::{Dimensions, Grid}; use alacritty_terminal::index::{Column, Line}; use alacritty_terminal::term::cell::Cell; use alacritty_terminal::term::test::TermSize; -use alacritty_terminal::term::Term; +use alacritty_terminal::term::{Config, Term}; +use alacritty_terminal::vte::ansi; macro_rules! ref_tests { ($($name:ident)*) => { @@ -105,10 +104,10 @@ fn ref_test(dir: &Path) { let grid: Grid<Cell> = json::from_str(&serialized_grid).unwrap(); let ref_config: RefConfig = json::from_str(&serialized_cfg).unwrap(); - let mut config = Config::default(); - config.scrolling.set_history(ref_config.history_size); + let mut options = Config::default(); + options.scrolling_history = ref_config.history_size as usize; - let mut terminal = Term::new(&config, &size, Mock); + let mut terminal = Term::new(options, &size, Mock); let mut parser: ansi::Processor = ansi::Processor::new(); for byte in recording { |