mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-01 20:52:06 -07:00
Add --header-lines option
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// Reader reads from command or standard input
|
||||
type Reader struct {
|
||||
pusher func(string)
|
||||
pusher func(string) bool
|
||||
eventBox *util.EventBox
|
||||
delimNil bool
|
||||
}
|
||||
@@ -43,8 +43,9 @@ func (r *Reader) feed(src io.Reader) {
|
||||
if err == nil {
|
||||
line = line[:len(line)-1]
|
||||
}
|
||||
r.pusher(line)
|
||||
r.eventBox.Set(EvtReadNew, nil)
|
||||
if r.pusher(line) {
|
||||
r.eventBox.Set(EvtReadNew, nil)
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
break
|
||||
|
Reference in New Issue
Block a user