This commit is contained in:
4
vendor/github.com/charmbracelet/bubbletea/tty.go
generated
vendored
4
vendor/github.com/charmbracelet/bubbletea/tty.go
generated
vendored
@ -52,7 +52,7 @@ func (p *Program) restoreTerminalState() error {
|
||||
p.renderer.exitAltScreen()
|
||||
|
||||
// give the terminal a moment to catch up
|
||||
time.Sleep(time.Millisecond * 10) //nolint:gomnd
|
||||
time.Sleep(time.Millisecond * 10) //nolint:mnd
|
||||
}
|
||||
}
|
||||
|
||||
@ -109,7 +109,7 @@ func (p *Program) readLoop() {
|
||||
func (p *Program) waitForReadLoop() {
|
||||
select {
|
||||
case <-p.readLoopDone:
|
||||
case <-time.After(500 * time.Millisecond): //nolint:gomnd
|
||||
case <-time.After(500 * time.Millisecond): //nolint:mnd
|
||||
// The read loop hangs, which means the input
|
||||
// cancelReader's cancel function has returned true even
|
||||
// though it was not able to cancel the read.
|
||||
|
Reference in New Issue
Block a user