about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2019-07-04 11:17:22 +0200
committerDrew DeVault <sir@cmpwn.com>2019-07-04 12:24:16 -0400
commit0abca31c1519cac19914fa7b1849126c2c512529 (patch)
treee630e3e67fb48a98f3509e576cb13b251cf73b38
parentd7fecf7740655e9d772963fd7e2a6d2af81458df (diff)
downloadaerc-0abca31c1519cac19914fa7b1849126c2c512529.tar.gz
dirlist: remove the additional filtering in Draw()
-rw-r--r--widgets/dirlist.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index 2e7dd06..c7469d1 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)