mirror of
https://github.com/junegunn/fzf
synced 2024-11-02 21:40:34 +00:00
Fix compilation error of Windows binary
This commit is contained in:
parent
6ae085f974
commit
438f6c96cd
@ -3,6 +3,7 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"syscall"
|
||||
@ -18,9 +19,9 @@ func ExecCommand(command string) *exec.Cmd {
|
||||
func ExecCommandWith(_shell string, command string) *exec.Cmd {
|
||||
cmd := exec.Command("cmd")
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{
|
||||
HideWindow: false,
|
||||
CmdLine: fmt.Sprintf(` /s /c "%s"`, command),
|
||||
CreationFlags: 0,
|
||||
HideWindow: false,
|
||||
CmdLine: fmt.Sprintf(` /s /c "%s"`, command),
|
||||
CreationFlags: 0,
|
||||
}
|
||||
return cmd
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user