m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-14 22:33:47 -05:00

Remove unnecessary reader barrier on --filter mode

This commit is contained in:
Junegunn Choi
2019-11-11 12:53:03 +09:00
parent e975bd0c8d
commit 73c0a645e0
3 changed files with 14 additions and 11 deletions

View File

@@ -10,11 +10,9 @@ import (
func TestReadFromCommand(t *testing.T) {
strs := []string{}
eb := util.NewEventBox()
reader := Reader{
pusher: func(s []byte) bool { strs = append(strs, string(s)); return true },
finChan: make(chan bool, 1),
eventBox: eb,
event: int32(EvtReady)}
reader := NewReader(
func(s []byte) bool { strs = append(strs, string(s)); return true },
eb, false, true)
reader.startEventPoller()