mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
more things
This commit is contained in:
parent
e392b9f86a
commit
cb26c7a1f2
7 changed files with 176 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue