fix: cannot cd if there is whitespace in path (#255)

This commit is contained in:
Nguyễn Đức Toàn 2023-10-12 16:39:46 +07:00 committed by GitHub
parent cdd20f8510
commit ec29ee5d92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,7 @@ impl Tab {
emit!(Input(InputOpt::top("Change directory:").with_value(target.to_string_lossy())));
if let Some(Ok(s)) = result.recv().await {
emit!(Cd(Url::from(s)));
emit!(Cd(Url::from(s.trim())));
}
});
false