summaryrefslogtreecommitdiffstats
path: root/vendor/github.com
diff options
context:
space:
mode:
authorRyooooooga <eial5q265e5@gmail.com>2022-10-16 16:17:23 +0900
committerRyooooooga <eial5q265e5@gmail.com>2022-10-18 22:20:04 +0900
commit4aa9147dfa5f81bad124395a3e5f9c69eb4353c9 (patch)
tree4739508cddf3f62190f4afb9aba79f7e25c4ee47 /vendor/github.com
parent14ec0cd92e94ecf60c0e2150b2d62d6987250f0e (diff)
build: $ ./scripts/bump_gocui.sh
Diffstat (limited to 'vendor/github.com')
-rw-r--r--vendor/github.com/jesseduffield/gocui/gui.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/github.com/jesseduffield/gocui/gui.go b/vendor/github.com/jesseduffield/gocui/gui.go
index 889e02999..39a38af88 100644
--- a/vendor/github.com/jesseduffield/gocui/gui.go
+++ b/vendor/github.com/jesseduffield/gocui/gui.go
@@ -611,6 +611,8 @@ func (g *Gui) WhitelistKeybinding(k Key) error {
// typed Key or rune.
func getKey(key interface{}) (Key, rune, error) {
switch t := key.(type) {
+ case nil: // Ignore keybinding if `nil`
+ return 0, 0, nil
case Key:
return t, 0, nil
case rune: