From 9c4df5a7c29ac411321da9c9d5427ffe11fb564c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 6 May 2024 20:39:38 +0900 Subject: [PATCH] fix windows build --- src/util/util_windows.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/util_windows.go b/src/util/util_windows.go index 7bbf6ee7..f29e33be 100644 --- a/src/util/util_windows.go +++ b/src/util/util_windows.go @@ -97,15 +97,15 @@ func (x *Executor) Become(stdin *os.File, environ []string, command string) { err := cmd.Start() if err != nil { fmt.Fprintf(os.Stderr, "fzf (become): %s\n", err.Error()) - Exit(127) + os.Exit(127) } err = cmd.Wait() if err != nil { if exitError, ok := err.(*exec.ExitError); ok { - Exit(exitError.ExitCode()) + os.Exit(exitError.ExitCode()) } } - Exit(0) + os.Exit(0) } func escapeArg(s string) string {