mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-27 14:34:32 +03:00
fix: cwd of newtab action (#2455)
This commit is contained in:
parent
df0c7f1d9a
commit
3d7c54aca0
@ -742,7 +742,7 @@ impl Pty {
|
||||
}
|
||||
});
|
||||
match run_instruction {
|
||||
Some(Run::Command(command)) => {
|
||||
Some(Run::Command(mut command)) => {
|
||||
let starts_held = command.hold_on_start;
|
||||
let hold_on_close = command.hold_on_close;
|
||||
let quit_cb = Box::new({
|
||||
@ -762,6 +762,11 @@ impl Pty {
|
||||
}
|
||||
}
|
||||
});
|
||||
if command.cwd.is_none() {
|
||||
if let TerminalAction::RunCommand(cmd) = default_shell {
|
||||
command.cwd = cmd.cwd;
|
||||
}
|
||||
}
|
||||
let cmd = TerminalAction::RunCommand(command.clone());
|
||||
if starts_held {
|
||||
// we don't actually open a terminal in this case, just wait for the user to run it
|
||||
|
Loading…
Reference in New Issue
Block a user