mirror of
https://github.com/wez/wezterm.git
synced 2024-11-27 12:23:46 +03:00
Drop directory for ssh domains
This commit is contained in:
parent
d789748c99
commit
24ecfca5a5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user