1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-30 14:49:26 +03:00

Drop directory for ssh domains

This commit is contained in:
Jeremy Fitzhardinge 2020-01-11 14:37:37 -08:00 committed by Wez Furlong
parent d789748c99
commit 24ecfca5a5

View File

@ -338,16 +338,13 @@ impl Domain for RemoteSshDomain {
&self,
size: PtySize,
command: Option<CommandBuilder>,
command_dir: Option<String>,
_command_dir: Option<String>,
window: WindowId,
) -> Result<Rc<dyn Tab>, Error> {
let mut cmd = match command {
let cmd = match command {
Some(c) => c,
None => CommandBuilder::new_default_prog(),
};
if let Some(dir) = command_dir {
cmd.cwd(dir);
}
let pair = self.pty_system.openpty(size)?;
let child = pair.slave.spawn_command(cmd)?;
log::info!("spawned: {:?}", child);