-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Running fzf with WithNoLimit(false) and then with WithNoLimit(true) breaks toggling, that is, the program no longer responds to TAB key. Running fzf twice with WithNoLimit(true) does not break toggle input.
package main
import (
"github.com/koki-develop/go-fzf"
)
func main() {
items := []string{"a", "b", "c"}
{
ff, err := fzf.New(fzf.WithNoLimit(false)) // <<<
if err != nil {
panic(err)
}
_, err = ff.Find(items, func(i int) string { return items[i] })
if err != nil {
panic(err)
}
}
{
ff, err := fzf.New(fzf.WithNoLimit(true)) // <<<
if err != nil {
panic(err)
}
_, err = ff.Find(items, func(i int) string { return items[i] })
if err != nil {
panic(err)
}
}
}Metadata
Metadata
Assignees
Labels
No labels