mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 21:05:48 +02:00
build: bump gocui
This commit is contained in:
parent
00b922604a
commit
657b1e897f
84 changed files with 1710 additions and 3272 deletions
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue