Consider PATHEXT when searching for fzf binary

This commit is contained in:
mataha 2024-06-17 00:41:02 +02:00
parent d838651f51
commit 862bdf16e4
1 changed files with 1 additions and 1 deletions

View File

@ -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";