Skip to content

Commit

Permalink
fix(Commands): MacOS copy command not working (#12)
Browse files Browse the repository at this point in the history
Removed the unnecessary quote around the argument that is causing a syntax error when running `osascript`. Those quotes aren't needed since vim.system() will not word split the string.
  • Loading branch information
debling committed Jun 6, 2024
1 parent e49fc7f commit 06a9b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/freeze-code/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ local copy_by_os = function(opts)
cmd = {
"osascript",
"-e",
"'set the clipboard to (read (POSIX file \"" .. filename .. "\") as {«class PNGf»})'",
"set the clipboard to (read (POSIX file \"" .. filename .. "\") as {«class PNGf»})",
}
end
if is_unix then
Expand Down

0 comments on commit 06a9b82

Please sign in to comment.