mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-21 23:43:50 -07:00
Increase buffer size of event channel to avoid freeze on zero event
Fix #3516
This commit is contained in:
@@ -729,7 +729,7 @@ func NewTerminal(opts *Options, eventBox *util.EventBox) *Terminal {
|
|||||||
killChan: make(chan int),
|
killChan: make(chan int),
|
||||||
serverInputChan: make(chan []*action, 10),
|
serverInputChan: make(chan []*action, 10),
|
||||||
serverOutputChan: make(chan string),
|
serverOutputChan: make(chan string),
|
||||||
eventChan: make(chan tui.Event, 1),
|
eventChan: make(chan tui.Event, 3), // load / zero|one | GetChar
|
||||||
tui: renderer,
|
tui: renderer,
|
||||||
initFunc: func() { renderer.Init() },
|
initFunc: func() { renderer.Init() },
|
||||||
executing: util.NewAtomicBool(false)}
|
executing: util.NewAtomicBool(false)}
|
||||||
|
Reference in New Issue
Block a user