summaryrefslogtreecommitdiff
path: root/src/core.go
diff options
context:
space:
mode:
authorGiulio Iotti <dullgiulio@gmail.com>2015-06-08 06:36:21 +0000
committerGiulio Iotti <dullgiulio@gmail.com>2015-06-08 08:38:40 +0000
commitf6dd32046eabfc31671c39d98581bbc3899d6b27 (patch)
tree0875374f7e6e2535ba2c76bd1b9074621ab21b09 /src/core.go
parent443a80f254c8a21c17de910533bb11fcd253eb02 (diff)
downloadfzf-f6dd32046eabfc31671c39d98581bbc3899d6b27.tar.gz
add support to nil-byte separated input strings, closes #121
Diffstat (limited to 'src/core.go')
-rw-r--r--src/core.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.go b/src/core.go
index 61cabf9e..c7277080 100644
--- a/src/core.go
+++ b/src/core.go
@@ -113,7 +113,7 @@ func Run(opts *Options) {
// Reader
streamingFilter := opts.Filter != nil && !sort && !opts.Tac && !opts.Sync
if !streamingFilter {
- reader := Reader{func(str string) { chunkList.Push(str) }, eventBox}
+ reader := Reader{func(str string) { chunkList.Push(str) }, eventBox, opts.ReadZero}
go reader.ReadSource()
}
@@ -139,7 +139,7 @@ func Run(opts *Options) {
if pattern.MatchItem(item) {
fmt.Println(*item.text)
}
- }, eventBox}
+ }, eventBox, opts.ReadZero}
reader.ReadSource()
} else {
eventBox.Unwatch(EvtReadNew)