Skip to content

Commit

Permalink
Support multi-word arguments in FZF overrides (#765)
Browse files Browse the repository at this point in the history
Fixes #752
  • Loading branch information
denisidoro authored Jul 28, 2022
1 parent 81cd721 commit d68c443
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/finder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,8 @@ impl FinderChoice {
}

if let Some(o) = opts.overrides {
o.as_str()
.split(' ')
.map(|s| s.to_string())
shellwords::split(&o)?
.into_iter()
.filter(|s| !s.is_empty())
.for_each(|s| {
command.arg(s);
Expand Down

0 comments on commit d68c443

Please sign in to comment.