Make server channel buffered

Not to block an action that calls the API

  fzf --listen 6266 --bind 'space:execute-silent:curl localhost:6266 -d up'
This commit is contained in:
Junegunn Choi 2022-12-28 12:50:59 +09:00
parent 36d2bb332b
commit 44b6336372
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -602,7 +602,7 @@ func NewTerminal(opts *Options, eventBox *util.EventBox) *Terminal {
theme: opts.Theme,
startChan: make(chan fitpad, 1),
killChan: make(chan int),
serverChan: make(chan []*action),
serverChan: make(chan []*action, 10),
tui: renderer,
initFunc: func() { renderer.Init() },
executing: util.NewAtomicBool(false)}