diff options
author | Bart <info@bartfokker.com> | 2023-07-16 10:14:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-16 17:14:22 +0900 |
commit | 3c09c77269d848f5e7dd8f350a90e8d7ed760845 (patch) | |
tree | cf418e344df526d58b6a3a7fc83bcc29d81d60f9 /src/terminal.go | |
parent | 547e101f1d6bf326d286bac0fb3272738a92a67f (diff) |
Fix deprecations of ioutil (#3370)
Diffstat (limited to 'src/terminal.go')
-rw-r--r-- | src/terminal.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/terminal.go b/src/terminal.go index 5baccf4e..3fdb770e 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -4,7 +4,6 @@ import ( "bufio" "fmt" "io" - "io/ioutil" "math" "os" "os/exec" @@ -2208,7 +2207,7 @@ func hasPreviewFlags(template string) (slot bool, plus bool, query bool) { } func writeTemporaryFile(data []string, printSep string) string { - f, err := ioutil.TempFile("", "fzf-preview-*") + f, err := os.CreateTemp("", "fzf-preview-*") if err != nil { errorExit("Unable to create temporary file") } |