1
0
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:
Ryooooooga
2023-01-06 10:59:09 +09:00
parent 00b922604a
commit 657b1e897f
84 changed files with 1710 additions and 3272 deletions

View File

@ -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
}