summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-11-30 17:20:47 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-11-30 17:23:46 +0900
commitcd6788a2bbb37622979c147225593e9badd5b48c (patch)
treed95363b51a3a14d7a42e1a47432d189a8f0c286b /src
parent6b99399c41d9818ee4b4fa8968a1249100008e4c (diff)
Increase buffer size of event channel to avoid freeze on zero event
Fix #3516
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 fe611fb3..e588187a 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -729,7 +729,7 @@ func NewTerminal(opts *Options, eventBox *util.EventBox) *Terminal {
killChan: make(chan int),
serverInputChan: make(chan []*action, 10),
serverOutputChan: make(chan string),
- eventChan: make(chan tui.Event, 1),
+ eventChan: make(chan tui.Event, 3), // load / zero|one | GetChar
tui: renderer,
initFunc: func() { renderer.Init() },
executing: util.NewAtomicBool(false)}