mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix whitespace prefix at cd_interactive
This commit is contained in:
parent
efd3b5cf0e
commit
e7557617fb
2 changed files with 4 additions and 4 deletions
|
|
@ -146,7 +146,7 @@ impl Tab {
|
||||||
emit!(Input(InputOpt::top("Change directory:").with_value(target.to_string_lossy())));
|
emit!(Input(InputOpt::top("Change directory:").with_value(target.to_string_lossy())));
|
||||||
|
|
||||||
if let Some(Ok(s)) = result.recv().await {
|
if let Some(Ok(s)) = result.recv().await {
|
||||||
emit!(Cd(Url::from(s)));
|
emit!(Cd(Url::from(s.trim())));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
false
|
false
|
||||||
|
|
|
||||||
|
|
@ -42,15 +42,15 @@ impl From<&Path> for Url {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<String> for Url {
|
impl From<String> for Url {
|
||||||
fn from(path: String) -> Self { Self::from(PathBuf::from(path.trim())) }
|
fn from(path: String) -> Self { Self::from(PathBuf::from(path)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<&String> for Url {
|
impl From<&String> for Url {
|
||||||
fn from(path: &String) -> Self { Self::from(PathBuf::from(path.trim())) }
|
fn from(path: &String) -> Self { Self::from(PathBuf::from(path)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<&str> for Url {
|
impl From<&str> for Url {
|
||||||
fn from(path: &str) -> Self { Self::from(PathBuf::from(path.trim())) }
|
fn from(path: &str) -> Self { Self::from(PathBuf::from(path)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AsRef<Url> for Url {
|
impl AsRef<Url> for Url {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue