summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyohei Uto <im@kyoheiu.dev>2024-03-03 10:53:03 +0900
committerKyohei Uto <im@kyoheiu.dev>2024-03-03 10:53:03 +0900
commit0fb83c5115369d38e20ef2c64ac110b3af4a9cde (patch)
treefc7df67657ef214b6c4d149b7062d63526d125f9
parentea4d1d37127bfd1838c6e1a9a92ec0a7136a8472 (diff)
Fix: Receive multiple argumentsfix/z-query
-rw-r--r--src/run.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/run.rs b/src/run.rs
index 82c9b01..0954992 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -762,7 +762,8 @@ fn _run(mut state: State, session_path: PathBuf) -> Result<(), FxError> {
break 'zoxide;
} else if let Ok(output) =
std::process::Command::new("zoxide")
- .args(["query", commands[1]])
+ .arg("query")
+ .args(&commands[1..])
.output()
{
let output = output.stdout;