Drop directory for ssh domains

This commit is contained in:
Jeremy Fitzhardinge authored and Wez Furlong committed 2020-01-11 18:25:17 -08:00
1 parent d789748c99
commit 24ecfca5a5
1 file changed
+2 -5
+2 -5
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);