aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/tty/windows
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-06-05 01:10:31 +0300
committerGitHub <noreply@github.com>2020-06-05 01:10:31 +0300
commitf99220f01553c6c9d36e1f4ce01c007f4d4d4cb5 (patch)
treea61843b8ffe5fc25cc3a35157bc1a4346f37d40b /alacritty_terminal/src/tty/windows
parent1e32e5a5154a2e765ca0b3ab8e50e4c01bbe5d18 (diff)
downloadalacritty-f99220f01553c6c9d36e1f4ce01c007f4d4d4cb5.tar.gz
alacritty-f99220f01553c6c9d36e1f4ce01c007f4d4d4cb5.zip
Refactor Shell, Command, and Launcher to share impl
Diffstat (limited to 'alacritty_terminal/src/tty/windows')
-rw-r--r--alacritty_terminal/src/tty/windows/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/alacritty_terminal/src/tty/windows/mod.rs b/alacritty_terminal/src/tty/windows/mod.rs
index 47b03d90..685e7849 100644
--- a/alacritty_terminal/src/tty/windows/mod.rs
+++ b/alacritty_terminal/src/tty/windows/mod.rs
@@ -18,7 +18,7 @@ use std::iter::once;
use std::os::windows::ffi::OsStrExt;
use std::sync::mpsc::TryRecvError;
-use crate::config::{Config, Shell};
+use crate::config::{Config, Program};
use crate::event::OnResize;
use crate::term::SizeInfo;
use crate::tty::windows::child::ChildExitWatcher;
@@ -197,11 +197,11 @@ impl OnResize for Pty {
}
fn cmdline<C>(config: &Config<C>) -> String {
- let default_shell = Shell::new("powershell");
+ let default_shell = Program::Just("powershell".to_owned());
let shell = config.shell.as_ref().unwrap_or(&default_shell);
- once(shell.program.as_ref())
- .chain(shell.args.iter().map(|a| a.as_ref()))
+ once(shell.program().as_ref())
+ .chain(shell.args().iter().map(|a| a.as_ref()))
.collect::<Vec<_>>()
.join(" ")
}