diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-23 20:08:20 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-05-23 21:11:12 +0900 |
| commit | 3dee8778d073199e0fe1e186e54f7eabc2fdef43 (patch) | |
| tree | 1c39e76cf456b176cee9c4763ddbd8447e4ce406 /src/reader.go | |
| parent | d4216b0dcc13567479d81cc5ad2adedb1443ea8b (diff) | |
| download | fzf-3dee8778d073199e0fe1e186e54f7eabc2fdef43.tar.gz | |
execute: Open separate handles to /dev/tty (in, out, err)
# This will no longer cause 'Vim: Warning: Output is not to a terminal'
fzf --bind 'enter:execute:vim {}' > /tmp/foo
Diffstat (limited to 'src/reader.go')
| -rw-r--r-- | src/reader.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.go b/src/reader.go index 99a609e2..83912df5 100644 --- a/src/reader.go +++ b/src/reader.go @@ -113,7 +113,7 @@ func (r *Reader) ReadSource(inputChan chan string, root string, opts walkerOpts, var success bool if inputChan != nil { success = r.readChannel(inputChan) - } else if util.IsTty() { + } else if util.IsTty(os.Stdin) { cmd := os.Getenv("FZF_DEFAULT_COMMAND") if len(cmd) == 0 { success = r.readFiles(root, opts, ignores) |
