From 8681f71084894db6d1e258be17db1f80bb669314 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Mon, 22 Nov 2021 21:34:09 +0300 Subject: Add parameters to `msg create-window` subcommand Alacritty's `msg create-window` subcommand would previously inherit all the CLI parameters from the original executable. However not only could this lead to unexpected behavior, it also prevents multi-window users from making use of parameters like `-e`, `--working-directory`, or `--hold`. This is solved by adding a JSON-based message format to the IPC socket messages which instructs the Alacritty server on which CLI parameters should be used to create the new window. Fixes #5562. Fixes #5561. Fixes #5560. --- alacritty_terminal/tests/ref.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alacritty_terminal/tests') diff --git a/alacritty_terminal/tests/ref.rs b/alacritty_terminal/tests/ref.rs index a9968736..28b0dd19 100644 --- a/alacritty_terminal/tests/ref.rs +++ b/alacritty_terminal/tests/ref.rs @@ -6,7 +6,7 @@ use std::io::Read; use std::path::Path; use alacritty_terminal::ansi; -use alacritty_terminal::config::MockConfig; +use alacritty_terminal::config::Config; use alacritty_terminal::event::{Event, EventListener}; use alacritty_terminal::grid::{Dimensions, Grid}; use alacritty_terminal::index::{Column, Line}; @@ -101,7 +101,7 @@ 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 config = MockConfig::default(); + let mut config = Config::default(); config.scrolling.set_history(ref_config.history_size); let mut terminal = Term::new(&config, size, Mock); -- cgit v1.2.3-54-g00ecf