From 862bdf16e471c821a153f3dd9b79abd3409e8638 Mon Sep 17 00:00:00 2001 From: mataha Date: Mon, 17 Jun 2024 00:41:02 +0200 Subject: [PATCH] Consider PATHEXT when searching for fzf binary --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 996f61d..8deb0b5 100644 --- a/src/util.rs +++ b/src/util.rs @@ -31,7 +31,7 @@ impl Fzf { // Instead, we resolve the path to the executable and then pass it to // CreateProcess. #[cfg(windows)] - let program = which::which("fzf.exe").map_err(|_| anyhow!(Self::ERR_FZF_NOT_FOUND))?; + let program = which::which("fzf").map_err(|_| anyhow!(Self::ERR_FZF_NOT_FOUND))?; #[cfg(not(windows))] let program = "fzf";