Skip to content
Myr

Increase buffer size of event channel to avoid freeze on zero event

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix #3516

authored by Junegunn Choi · committed by Junegunn Choi · parent 6b99399 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/terminal.go+1 added-1 removed
727 unmodified lines
728 startChan: make(chan fitpad, 1),729 killChan: make(chan int),730 serverInputChan: make(chan []*action, 10),731 serverOutputChan: make(chan string),732 eventChan: make(chan tui.Event, 1),732 eventChan: make(chan tui.Event, 3), // load / zero|one | GetChar733 tui: renderer,734 initFunc: func() { renderer.Init() },735 executing: util.NewAtomicBool(false)}736 t.prompt, t.promptLen = t.parsePrompt(opts.Prompt)
3319 unmodified lines