Skip to content

Commit

Permalink
Increase buffer size of event channel to avoid freeze on zero event
Browse files Browse the repository at this point in the history
Fix #3516
  • Loading branch information
junegunn committed Nov 30, 2023
1 parent 6b99399 commit cd6788a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down

0 comments on commit cd6788a

Please sign in to comment.