diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-07 01:06:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-07 01:06:42 +0900 |
| commit | e8405f40fe2eb3675f1cb4f69e825eff5f13f269 (patch) | |
| tree | c917367f1f0098939f9cdf7376a2a135907024fc /src/util/util_windows.go | |
| parent | 065b9e6fb2ce3e6e50ff423c3786989afa04ee14 (diff) | |
| download | fzf-e8405f40fe2eb3675f1cb4f69e825eff5f13f269.tar.gz | |
Refactor the code so that fzf can be used as a library (#3769)
Diffstat (limited to 'src/util/util_windows.go')
| -rw-r--r-- | src/util/util_windows.go | 6 |
1 files 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 { |
