summaryrefslogtreecommitdiffstats
path: root/src/reader.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.go')
-rw-r--r--src/reader.go2
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)