diff --git a/src/finder.rs b/src/finder.rs index a6f1ce3..9914d5f 100644 --- a/src/finder.rs +++ b/src/finder.rs @@ -138,8 +138,10 @@ impl Finder for FinderChoice { "--exact", ]); - if opts.autoselect { - command.arg("--select-1"); + if let Self::Fzf = self { + if opts.autoselect { + command.arg("--select-1"); + } } match opts.suggestion_type {