1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

more things

This commit is contained in:
Jesse Duffield
2022-03-20 10:19:14 +11:00
parent e392b9f86a
commit cb26c7a1f2
7 changed files with 176 additions and 41 deletions

View File

@ -141,12 +141,11 @@ outer:
if existing == nil {
contextAndViewBindingMap[key] = []*types.Binding{binding}
} else {
for _, navBinding := range contextAndViewBindingMap[key] {
if navBinding.Description == binding.Description {
continue outer
}
if !slices.Some(contextAndViewBindingMap[key], func(navBinding *types.Binding) bool {
return navBinding.Description == binding.Description
}) {
contextAndViewBindingMap[key] = append(contextAndViewBindingMap[key], binding)
}
contextAndViewBindingMap[key] = append(contextAndViewBindingMap[key], binding)
}
continue outer