mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-19 00:28:03 +02:00
build: bump gocui
This commit is contained in:
5
vendor/github.com/jesseduffield/gocui/gui.go
generated
vendored
5
vendor/github.com/jesseduffield/gocui/gui.go
generated
vendored
@ -5,6 +5,7 @@
|
||||
package gocui
|
||||
|
||||
import (
|
||||
"context"
|
||||
standardErrors "errors"
|
||||
"log"
|
||||
"runtime"
|
||||
@ -1357,7 +1358,7 @@ func (g *Gui) execKeybinding(v *View, kb *keybinding) (bool, error) {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
func (g *Gui) StartTicking() {
|
||||
func (g *Gui) StartTicking(ctx context.Context) {
|
||||
go func() {
|
||||
g.Mutexes.tickingMutex.Lock()
|
||||
defer g.Mutexes.tickingMutex.Unlock()
|
||||
@ -1379,6 +1380,8 @@ func (g *Gui) StartTicking() {
|
||||
}
|
||||
}
|
||||
return
|
||||
case <-ctx.Done():
|
||||
return
|
||||
case <-g.stop:
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user