1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-05 00:59:19 +02:00

Bump gocui

In Gui.onWorker we only make the minimum possible change to get things to
compile after the API-breaking change of the gocui update; we'll make this
cleaner later in this branch.
This commit is contained in:
Stefan Haller
2024-04-18 10:05:52 +02:00
parent 8a77e51576
commit 9f8ae76189
19 changed files with 392 additions and 95 deletions

View File

@ -105,7 +105,7 @@ func newKeybinding(viewname string, key Key, ch rune, mod Modifier, handler func
func eventMatchesKey(ev *GocuiEvent, key interface{}) bool {
// assuming ModNone for now
if Modifier(ev.Mod) != ModNone {
if ev.Mod != ModNone {
return false
}
@ -114,7 +114,7 @@ func eventMatchesKey(ev *GocuiEvent, key interface{}) bool {
return false
}
return k == Key(ev.Key) && ch == ev.Ch
return k == ev.Key && ch == ev.Ch
}
// matchKeypress returns if the keybinding matches the keypress.