Add visual indication of --toggle-sort

Close #194
This commit is contained in:
Junegunn Choi
2015-04-16 14:44:41 +09:00
parent d08542ce5d
commit d1d59272a2
3 changed files with 15 additions and 3 deletions

View File

@@ -195,8 +195,9 @@ func Run(options *Options) {
matcher.Reset(snapshot, terminal.Input(), false, !reading, sort)
case EvtSearchNew:
if value.(bool) {
sort = !sort
switch val := value.(type) {
case bool:
sort = val
}
snapshot, _ := chunkList.Snapshot()
matcher.Reset(snapshot, terminal.Input(), true, !reading, sort)