summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-12-28 12:50:59 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-12-28 12:52:19 +0900
commit44b63363729adfc6f477bedcfb4c7b6a379b948b (patch)
tree6d99b946f78b34b51a40a914e3102cf99e2342ac /src
parent36d2bb332b87900e8178f2ec54d2cfda07f075db (diff)
downloadfzf-44b63363729adfc6f477bedcfb4c7b6a379b948b.tar.gz
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'
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 2d18f791..685b1240 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -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)}