mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
Properly exec query even without --select-1
This commit is contained in:
parent
55cdd5825f
commit
4d0335dbd5
4
peco.go
4
peco.go
|
|
@ -406,6 +406,8 @@ func (p *Peco) Run(ctx context.Context) (err error) {
|
|||
// if we only have one item
|
||||
if p.selectOneAndExit {
|
||||
p.ExecQuery(p.selectOneAndExitIfPossible)
|
||||
} else {
|
||||
p.ExecQuery(nil)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
|
@ -723,7 +725,7 @@ func (p *Peco) ExecQuery(nextFunc func()) bool {
|
|||
// Wait $delay millisecs before sending the query
|
||||
// if a new input comes in, batch them up
|
||||
if pdebug.Enabled {
|
||||
pdebug.Printf("sending query with delay)")
|
||||
pdebug.Printf("sending query (with delay)")
|
||||
}
|
||||
p.queryExecTimer = time.AfterFunc(delay, func() {
|
||||
if pdebug.Enabled {
|
||||
|
|
|
|||
Loading…
Reference in a new issue