mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Make LabelFromKey return an empty string for unset keys
It previously returned "\x00", which is probably not intended, but happened to work.
This commit is contained in:
parent
7fe96e9aee
commit
96a6e659a6
|
|
@ -17,6 +17,10 @@ func Label(name string) string {
|
|||
}
|
||||
|
||||
func LabelFromKey(key types.Key) string {
|
||||
if key == nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
keyInt := 0
|
||||
|
||||
switch key := key.(type) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue