clipboard copy: don't run clip through cmd on Windows
This commit is contained in:
parent
0d48e346ad
commit
10bd3b47e9
|
|
@ -2129,7 +2129,7 @@ func copyToClipboard(str string) {
|
|||
var cmd *exec.Cmd
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
cmd = exec.Command("cmd", "/c", "clip")
|
||||
cmd = exec.Command("clip")
|
||||
case "darwin":
|
||||
cmd = exec.Command("pbcopy")
|
||||
case "linux":
|
||||
|
|
|
|||
Loading…
Reference in New Issue