Fix sort control from Terminal

This commit is contained in:
Junegunn Choi 2015-04-16 22:13:31 +09:00
parent 2db2feea37
commit f9225f98e7

View File

@ -723,7 +723,7 @@ func (t *Terminal) Loop() {
t.mutex.Unlock() // Must be unlocked before touching reqBox t.mutex.Unlock() // Must be unlocked before touching reqBox
if changed { if changed {
t.eventBox.Set(EvtSearchNew, false) t.eventBox.Set(EvtSearchNew, t.sort)
} }
for _, event := range events { for _, event := range events {
t.reqBox.Set(event, nil) t.reqBox.Set(event, nil)