From 4c5a679066972cefb831adeb179e45eb7068bbba Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 28 Jul 2017 13:13:03 +0900 Subject: [PATCH] Make deselect-all instantaneous --- src/terminal.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/terminal.go b/src/terminal.go index 36cc7c2..8c7c1a8 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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: