From 2f097dac5c78a01bdb020c982a09867b3213a69b Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Wed, 8 Nov 2023 07:03:24 +0100 Subject: Add `--option` argument to `create-window` This patch adds a new CLI parameter to the `create-window` subcommand, matching the existing `--option` parameter when creating a new Alacritty instance. This parameter allows setting up the initial window configuration from the CLI without having to call `alacritty msg config`, making sure that all options are set appropriately right from the start. Closes #6238. --- alacritty_terminal/tests/ref.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alacritty_terminal/tests/ref.rs') diff --git a/alacritty_terminal/tests/ref.rs b/alacritty_terminal/tests/ref.rs index 4f8bc74a..7f864ae8 100644 --- a/alacritty_terminal/tests/ref.rs +++ b/alacritty_terminal/tests/ref.rs @@ -104,8 +104,8 @@ fn ref_test(dir: &Path) { let grid: Grid = json::from_str(&serialized_grid).unwrap(); let ref_config: RefConfig = json::from_str(&serialized_cfg).unwrap(); - let mut options = Config::default(); - options.scrolling_history = ref_config.history_size as usize; + let options = + Config { scrolling_history: ref_config.history_size as usize, ..Default::default() }; let mut terminal = Term::new(options, &size, Mock); let mut parser: ansi::Processor = ansi::Processor::new(); -- cgit