Fix autoselect-1 when using skim (#429)

This commit is contained in:
Denis Isidoro 2020-10-15 15:32:29 -03:00 committed by GitHub
parent ff84a30301
commit ca458f76f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {