mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-02-13 09:29:07 +00:00
Remove unnecessary map lookup
This commit is contained in:
parent
525040238e
commit
a185593d65
@ -1838,10 +1838,7 @@ func (t *Terminal) Loop() {
|
|||||||
case actDeselectAll:
|
case actDeselectAll:
|
||||||
if t.multi > 0 {
|
if t.multi > 0 {
|
||||||
for i := 0; i < t.merger.Length() && len(t.selected) > 0; i++ {
|
for i := 0; i < t.merger.Length() && len(t.selected) > 0; i++ {
|
||||||
item := t.merger.Get(i).item
|
t.deselectItem(t.merger.Get(i).item)
|
||||||
if _, found := t.selected[item.Index()]; found {
|
|
||||||
t.deselectItem(item)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
req(reqList, reqInfo)
|
req(reqList, reqInfo)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user