Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions clipboard_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,19 @@ func init() {
}

func getPasteCommand() *exec.Cmd {
nb := len(pasteCmdArgs)
if Primary {
pasteCmdArgs = pasteCmdArgs[:1]
nb = 2
}
return exec.Command(pasteCmdArgs[0], pasteCmdArgs[1:]...)
return exec.Command(pasteCmdArgs[0], pasteCmdArgs[1:nb]...)
}

func getCopyCommand() *exec.Cmd {
nb := len(copyCmdArgs)
if Primary {
copyCmdArgs = copyCmdArgs[:1]
nb = 2
}
return exec.Command(copyCmdArgs[0], copyCmdArgs[1:]...)
return exec.Command(copyCmdArgs[0], copyCmdArgs[1:nb]...)
}

func readAll() (string, error) {
Expand Down