Make deselect-all instantaneous

This commit is contained in:
Junegunn Choi 2017-07-28 13:13:03 +09:00
parent 41f0b2c354
commit 4c5a679066
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -1584,9 +1584,8 @@ func (t *Terminal) Loop() {
}
case actDeselectAll:
if t.multi {
for i := 0; i < t.merger.Length(); i++ {
t.deselectItem(t.merger.Get(i).item)
}
t.selected = make(map[int32]selectedItem)
t.version++
req(reqList, reqInfo)
}
case actToggle: