mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: cd doesn't expand the path automatically
This commit is contained in:
parent
1a0753367e
commit
c49bf02ca4
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ pub struct Opt {
|
|||
impl From<&Exec> for Opt {
|
||||
fn from(e: &Exec) -> Self {
|
||||
Self {
|
||||
target: e.args.first().map(Url::from).unwrap_or_default(),
|
||||
target: Url::from(expand_path(e.args.first().map(|s| s.as_str()).unwrap_or(""))),
|
||||
interactive: e.named.contains_key("interactive"),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue