Skip to content

Commit

Permalink
fix: ignoring clipboard config
Browse files Browse the repository at this point in the history
closes #38
  • Loading branch information
krivahtoo committed Aug 7, 2023
1 parent 2a4c37c commit 45c550e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ features = ["jpeg", "png", "jpeg_rayon"]

[patch.crates-io]
nvim-oxi = { git = "https://github.com/noib3/nvim-oxi" }
silicon = { git = "https://github.com/Aloxaf/silicon" }
silicon = { git = "https://github.com/Aloxaf/silicon" }
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ fn setup(cmd_opts: Opts) -> Result<(), Error> {
end: args.line2,
output: OutputOpts {
file,
clipboard: Some(!args.bang),
clipboard: match cmd_opts.output.clipboard.is_none() {
true => Some(!args.bang),
false => cmd_opts.output.clipboard,
},
..cmd_opts.output.clone()
},
..cmd_opts.clone()
Expand Down

0 comments on commit 45c550e

Please sign in to comment.