From 0abca31c1519cac19914fa7b1849126c2c512529 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Thu, 4 Jul 2019 11:17:22 +0200 Subject: dirlist: remove the additional filtering in Draw() --- widgets/dirlist.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/widgets/dirlist.go b/widgets/dirlist.go index 2e7dd066..c7469d11 100644 --- a/widgets/dirlist.go +++ b/widgets/dirlist.go @@ -122,13 +122,6 @@ func (dirlist *DirectoryList) Draw(ctx *ui.Context) { if row >= ctx.Height() { break } - if len(dirlist.acctConf.Folders) > 1 && name != dirlist.selected { - idx := sort.SearchStrings(dirlist.acctConf.Folders, name) - if idx == len(dirlist.acctConf.Folders) || - dirlist.acctConf.Folders[idx] != name { - continue - } - } style := tcell.StyleDefault if name == dirlist.selected { style = style.Reverse(true) -- cgit