From ec29ee5d926cbb95941053eb9f4a13fd1999dce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20=C4=90=E1=BB=A9c=20To=C3=A0n?= <33489972+ndtoan96@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:39:46 +0700 Subject: [PATCH] fix: cannot cd if there is whitespace in path (#255) --- core/src/manager/tab.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/manager/tab.rs b/core/src/manager/tab.rs index 3069053d..e0b970d5 100644 --- a/core/src/manager/tab.rs +++ b/core/src/manager/tab.rs @@ -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